drive_comments_update
Change the text of an existing comment on a Google Drive file. Overwrites the previous content; only the comment's author can update it.
Instructions
Change the text of an existing comment. This overwrites the comment's content; the previous text is not retained. Only the comment's own author can update it — the API rejects the request otherwise. The resolved state can't be changed here: see drive_replies_create's action field.
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": {
"fileId": "<fileId>",
"commentId": "<commentId>",
"fields": "<fields>",
"content": "<content>"
},
"name": "drive_comments_update"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fields | Yes | Fields to include in the response (required by the API for this resource, e.g. "id,content,modifiedTime") | |
| fileId | Yes | The file the comment belongs to | |
| content | Yes | New comment text | |
| commentId | Yes | The comment to update |