Create, reply to, resolve or delete a comment
manage_commentCreate, reply to, resolve, reopen, or delete comment threads on a Google Doc, using comment IDs from list_comments. Resolving closes a thread reversibly; deleting removes it permanently.
Instructions
Manages comment threads via the Drive API. action=create adds a NEW comment (needs content; optional quoted_text cites a passage — the API cannot anchor a new comment to a live range, that anchor format is not public, so it appears at document level). action=reply adds a reply (needs comment_id + content). action=resolve closes the thread (needs comment_id; optional content posts a closing reply); action=reopen reactivates it. action=delete PERMANENTLY removes the comment and all its replies (needs comment_id) — deleting is final, resolving is the reversible way to close a thread. Get comment_id from list_comments. Requires a Drive scope on the OAuth token.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | Yes | What to do with the document's comments. | |
| content | No | create/reply: the comment text (plain text). Optional closing text for resolve/reopen. | |
| comment_id | No | reply/resolve/reopen/delete: the comment thread to target (from list_comments). | |
| document_id | Yes | The document id — the long id from the document URL (docs.google.com/document/d/<documentId>/edit) or from create_document output. | |
| quoted_text | No | create only: the passage of document text the comment refers to (shown as a quote). |