add_comment
Add comments to specific text ranges in Google Docs to provide feedback, suggestions, or annotations on document content.
Instructions
Add a comment anchored to a specific text range in the document.
NOTE: Due to Google API limitations, comments created programmatically appear in the 'All Comments' list but may not be visibly anchored in the UI.
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": {
"document_id": "<document_id>",
"start_index": "<start_index>",
"end_index": "<end_index>",
"comment_text": "<comment_text>"
},
"name": "add_comment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| document_id | Yes | The ID of the Google Document | |
| start_index | Yes | Starting index of the text range (inclusive, 1-based) | |
| end_index | Yes | Ending index of the text range (exclusive) | |
| comment_text | Yes | The content of the comment |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |