List Document Comments
drive_list_commentsList comments from a Google Doc, supporting pagination, deleted comments, and output in Markdown or JSON format.
Instructions
List comments on a Google Doc.
Args:
file_id (string): The ID of the Google Doc
include_deleted (boolean): Include deleted comments (default: false)
page_size (number): Max comments to return, 1-100 (default: 20)
page_token (string, optional): Pagination token for next page
response_format ('markdown' | 'json'): Output format (default: 'markdown')
Returns: For JSON format: { "comments": [ { "id": string, "content": string, "author": string, "createdTime": string, "resolved": boolean, "quotedFileContent": string, "replies": [{ "id", "content", "author", "createdTime" }] } ], "next_page_token": string | null }
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_id | Yes | The ID of the Google Doc to list comments from | |
| include_deleted | No | Whether to include deleted comments | |
| page_size | No | Maximum number of comments to return (1-100) | |
| page_token | No | Token for pagination to retrieve the next page of results | |
| response_format | No | Output format: 'markdown' for human-readable or 'json' for structured data | markdown |