add_doc_comment
Adds a comment to a Google Doc and can anchor it to specific quoted text, enabling targeted feedback through the Drive comments resource.
Instructions
Add a comment to a Google Doc via the Drive comments resource.
Args: doc_id: The Google Doc file ID. content: The comment text. quoted_text: Optional text from the document to anchor the comment to, shown as the quoted range the comment refers to.
Returns: Dictionary with id, content, author (display_name, email_address), created_time, and quoted_text (echoing the anchor, if one was set).
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": {
"doc_id": "<doc_id>",
"content": "<content>"
},
"name": "add_doc_comment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| doc_id | Yes | ||
| content | Yes | ||
| quoted_text | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||