list_doc_comments
Retrieve comments and replies from a Google Doc by file ID, with pagination and optional deleted items, to review feedback and discussion threads.
Instructions
List comments (and their replies) on a Google Doc via the Drive comments resource.
Args: doc_id: The Google Doc file ID. page_size: Maximum number of comments to return per page (default 20). page_token: Continuation token from a previous response for pagination. include_deleted: Whether to include deleted comments (default False).
Returns: Dictionary with: - doc_id: echoed back for reference - comments: list of comments, each with id, content, author (display_name, email_address), created_time, modified_time, resolved, deleted, quoted_text (the anchored text, if any), and replies. Each reply has id, content, author, created_time, modified_time, deleted, and action ("resolve" or "reopen", or None for an ordinary reply) — replies have no resolved or quoted_text field of their own; a comment's resolved status is derived from its most recent reply's action. - next_page_token: present when more results are available Raises ValueError if the response exceeds a safety cap (see MAX_TOOL_RESPONSE_CHARS in docs/configuration.md for the configured default) — lower page_size and paginate via next_page_token instead of raising the cap.
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": {
"doc_id": "<doc_id>"
},
"name": "list_doc_comments"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| doc_id | Yes | ||
| page_size | No | ||
| page_token | No | ||
| include_deleted | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||