add_comment
Add a comment to a file or reply to an existing comment with optional line anchoring; replying to external commenters sends them an email.
Instructions
Add a comment to a file, or reply to an existing comment (pass parentCommentId). Authored as the connected user. Optionally anchor to a line with lineNumber. Replying to an external (guest) commenter also emails them.
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": {
"fileId": "<fileId>",
"content": "<content>"
},
"name": "add_comment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fileId | Yes | UUID of the file | |
| content | Yes | Comment text (plain text, max 10000 chars) | |
| lineNumber | No | Optional 1-based line to anchor the comment to | |
| parentCommentId | No | Optional comment id to reply to (from list_comments) |