Create Comment (lawmatics_create-comment)
Add a comment to a Lawmatics task. Provide the text content (HTML formatting supported), the authoring firm user, and optionally firm users to @mention. Returns a `relationships` envelope of {id,type} pointers (commentable parent task, comment_mentions).
Tool Input
taskIdstringrequired— ID of the parent task to comment on; a numeric string(pattern: ^\d+$)
bodystringrequired— Text content of the comment; HTML formatting is supported, including mention spans
userIdstringrequired— ID of the firm user authoring the comment; a numeric string(pattern: ^\d+$)
mentionedUserIdsarray— IDs of firm users to @mention in the comment; numeric strings
[]string(pattern: ^\d+$)
Tool Output
idstringrequired— Unique ID of the created comment
bodystringrequired— Text content of the comment; may contain HTML formatting and mention spans
mentionedUserIdsarrayrequired— Numeric IDs of the firm users @mentioned in the comment
[]integer
createdAtstringrequired— When the comment was created, as an ISO 8601 timestamp
updatedAtstringrequired— When the comment was last updated, as an ISO 8601 timestamp
relationshipsobjectrequired— JSON:API relationship pointers to related records as {id,type} stubs. Not materialized — follow a pointer by calling that resource's own get/find tool (e.g. type 'task' -> get-task).
commentableobjectnullrequired— Parent record this comment is attached to (typically a task) pointer; null when unset
idstringrequired— ID of the referenced Lawmatics record
typestringrequired— JSON:API record class of the reference (e.g. "user", "contact", "prospect", "firm"); resolve it by calling that resource's own get/find tool — this pointer is not materialized
commentMentionsarrayrequired— Comment-mention record pointers, one per @mention; empty if none
[]object
2 fields
idstringrequired— ID of the referenced Lawmatics record
typestringrequired— JSON:API record class of the reference; resolve it by calling that resource's own tool
Related Tools