Manage Document Comment
manage_document_commentCreate, reply to, resolve, edit, or delete comments on Google Docs, with optional anchoring to specific text for precise margin discussions.
Instructions
Manage comments on a Google Document.
Actions:
create: Create a new comment. Requires comment_content. Pass anchor_text (literal text within one paragraph that occurs exactly once in the tab, table cells included) to anchor the comment to that text in the margin, as the Docs editor does; otherwise it is a document-level comment. tab_id picks the tab to search; the first tab by default.
reply: Reply to a comment. Requires comment_id and comment_content.
resolve: Resolve a comment. Requires comment_id.
update: Edit a comment's text. Requires comment_id and comment_content.
delete: Delete a comment. Requires comment_id.
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": {
"user_google_email": "<user_google_email>",
"document_id": "<document_id>",
"action": "<action>"
},
"name": "manage_document_comment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | Yes | ||
| tab_id | No | ||
| comment_id | No | ||
| anchor_text | No | ||
| document_id | Yes | ||
| comment_content | No | ||
| user_google_email | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |