add_comment
Create a new open review thread with its first comment, anchored to the whole artifact, exact text, or an HTML element in one immutable version. The caller needs comment access and comment creation is rate-limited. Use reply_to_thread for an existing discussion instead.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | Yes | Initial review comment for the new thread. | |
| anchor | No | Location in the specified version; defaults to the whole artifact. | |
| versionId | Yes | ID of the exact immutable artifact version. | |
| documentId | Yes | ID of the artifact containing the target resource. | |
| idempotencyKey | Yes | Stable unique key for this intended change; reuse only to retry the same inputs. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| anchor | Yes | Location for a new thread: the whole artifact, exact text, or an HTML element. | |
| status | Yes | Current review-thread state. | |
| comments | Yes | ||
| outdated | Yes | ||
| createdAt | Yes | ISO 8601 timestamp. | |
| documentId | Yes | ||
| resolvedAt | Yes | ||
| resolvedBy | Yes | ||
| resolvedByName | Yes | ||
| statusUpdatedAt | Yes | ||
| statusUpdatedBy | Yes | ||
| createdVersionId | Yes | ||
| currentVersionId | Yes | ||
| statusUpdatedByName | Yes | ||
| resolvedOnBehalfOfId | Yes | ||
| resolvedOnBehalfOfName | Yes | ||
| statusUpdatedOnBehalfOfId | Yes | ||
| statusUpdatedOnBehalfOfName | Yes |