add_comment
Add a comment to a file with optional user mentions via @username, up to 1000 characters. Provide file ID and message to post the comment.
Instructions
Add a comment to a file.
Use @username in the message to mention other users. Maximum message length is 1000 characters.
Args: file_id: The numeric file ID to comment on. message: The comment text (max 1000 characters). Use @username to mention users.
Returns: Confirmation with the new comment ID.
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": {
"file_id": "<file_id>",
"message": "<message>"
},
"name": "add_comment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_id | Yes | ||
| message | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |