drive_comments_create
Add a comment to a Google Drive file, optionally binding it to an app-defined region via an anchor string. Specify the file ID, comment content, and required response fields.
Instructions
Add a comment to a file. Set anchor to bind it to an app-defined region — Drive stores this as an opaque JSON string you define yourself, and does not validate or interpret it. Google Workspace editor apps (Docs/Sheets/Slides) still display comments created this way as unanchored; use the Docs/Sheets/Slides APIs directly if visual anchoring in those editors matters.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| anchor | No | App-defined region JSON string, optional (e.g. '{"line":10}') | |
| fields | Yes | Fields to include in the response (required by the API for this resource, e.g. "id,content,createdTime") | |
| fileId | Yes | The file to comment on | |
| content | Yes | Comment text |