Add a review comment
add_commentAdd an anchored review comment without directly changing document prose. Accepts natural workspace names and document titles; internal routing identifiers are optional. Returns threadId and targetId for reply_to_thread and resolve_thread.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"anchor": "<anchor>",
"body": "<body>",
"commandId": "<commandId>",
"context": "<context>"
},
"name": "add_comment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | Yes | ||
| anchor | Yes | ||
| context | Yes | Describe the user's underlying goal in one sentence. Do not include private document content, credentials, or personal information. | |
| targetId | No | ||
| articleId | No | Internal document identifier when already available. Omit it when the user referred to the document by title. | |
| commandId | Yes | Globally unique UUID for this logical review mutation. Generate it once and reuse the exact value if the tool call is retried. | |
| workspaceId | No | Optional workspace ID to narrow document lookup. Omit when the document title or ID uniquely identifies a document across authorized workspaces. | |
| articleTitle | No | Human-visible document title. Prefer this over asking the user for an internal document identifier. | |
| workspaceName | No | Optional workspace name to narrow document lookup. A unique document title can be used without a workspace choice. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| events | Yes | ||
| applied | Yes | ||
| targetId | Yes | Review target containing the new thread. Pass this exact value with threadId to resolve_thread or reply_to_thread. | |
| threadId | Yes | Stable review thread identifier. Pass this exact value with targetId to resolve_thread or reply_to_thread; do not use commandId. | |
| articleId | Yes | ||
| commandId | Yes | ||
| workspaceId | Yes |