Manage file comments
manage_commentsList, create, reply to, resolve, reopen, or delete comments on any Google Drive file, including viewing replies and resolved state.
Instructions
Manages Drive comments on a file (Docs, Sheets, Slides, PDFs, images...). action=list pages through comments with their replies and resolved state (page_token; include_deleted shows tombstones); get fetches one (needs comment_id). create adds a comment (needs content; quoted_text attaches the passage it refers to — display only; positional anchoring inside a Doc's text is not possible through this API, such comments appear file-level). reply answers a thread (needs comment_id + content). resolve / reopen close or reopen a thread (need comment_id; optional content adds a closing note). delete removes a comment and its replies permanently (needs comment_id; author only). Comments carry author, createdTime/modifiedTime, resolved and quotedFileContent. Not for Docs suggestions — those are a Docs feature this API cannot touch.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | Yes | What to do with the file's comments. | |
| anchor | No | create only: a Drive anchor JSON string for region-anchorable media (rarely needed). | |
| content | No | create/reply: the comment text (plain text). Optional closing note for resolve/reopen. | |
| file_id | Yes | The file id — the long id from the Drive URL (drive.google.com/file/d/<fileId> or docs.google.com/.../d/<fileId>/edit) or from search_files/get_file output. Folders and shared-drive items are files too. | |
| page_size | No | list: comments per page (1..100; API default 20). | |
| comment_id | No | get/reply/resolve/reopen/delete: the comment id (from action=list). | |
| page_token | No | list: nextPageToken from the previous page. | |
| quoted_text | No | create only: the file passage the comment refers to (shown as a quote; does not position the comment). | |
| include_deleted | No | list: include deleted comments as tombstones (default false). |