Add a comment
add_commentComment on one block of a document, in the signed-in author's name, as the editor's comment button does: everyone the document is shared with sees it in the Comments panel. Anyone who can open the document may comment, viewers too. Returns the comment's id. To answer a comment that is already there, use reply_to_comment.
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": {
"documentId": "<documentId>",
"blockId": "<blockId>",
"text": "<text>"
},
"name": "add_comment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | The comment. | |
| blockId | Yes | The block to comment on (an id from get_outline). | |
| documentId | Yes | The document id. |