Create Comment on Document
drive_create_commentAdd a comment to a Google Doc, optionally anchored to specific text.
Instructions
Add a comment to a Google Doc. Can be anchored to specific text or unanchored.
Args:
file_id (string): The ID of the Google Doc
content (string): The text content of the comment
quoted_text (string, optional): Text to anchor the comment to (for anchored comments)
Returns: { "id": string, "content": string, "author": string, "createdTime": string }
Examples:
Unanchored: file_id="...", content="Please review this section"
Anchored: file_id="...", content="Typo here", quoted_text="teh"
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": {
"file_id": "<file_id>",
"content": "<content>"
},
"name": "drive_create_comment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_id | Yes | The ID of the Google Doc to add a comment to | |
| content | Yes | The text content of the comment | |
| quoted_text | No | Optional text to anchor the comment to (for anchored comments) |