add_comment
Add comments to specific text ranges in Google Docs to provide feedback, suggestions, or annotations on document content.
Instructions
Add a comment anchored to a specific text range in the document.
NOTE: Due to Google API limitations, comments created programmatically appear in the 'All Comments' list but may not be visibly anchored in the UI.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| document_id | Yes | The ID of the Google Document | |
| start_index | Yes | Starting index of the text range (inclusive, 1-based) | |
| end_index | Yes | Ending index of the text range (exclusive) | |
| comment_text | Yes | The content of the comment |