Add a review comment
add_commentLeave review comments on a quoted passage, optionally include a replacement suggestion for authors to accept, without changing any files.
Instructions
Leave a review comment on a passage, the way a co-author would: anchored to quote (≥8 characters, copied verbatim from a read, matching one place or set occurrence — the edit_file rules, and the same stale_anchor/ambiguous_anchor errors). body is the comment; suggestion, optional, is replacement text for the quoted passage that the people can accept with one click. Changes no file. Use it when the user asks for review notes or for a change they should decide on, not for edits they asked you to make (use edit_file). The comment shows under your client's name, or "Assistant", for the person whose token you use. mentions @-mentions people by name.
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": {
"path": "<path>",
"quote": "<quote>",
"body": "<body>"
},
"name": "add_comment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | Yes | The comment. | |
| path | Yes | File path relative to the project root, e.g. "main.tex" or "sections/intro.tex" — no leading "/", no "..", and hidden folders (.git, .aldine-out) are off limits. | |
| quote | Yes | Exact text the comment is about, copied verbatim. At least 8 characters; must match exactly one place, or use occurrence. | |
| branch | No | Branch name (defaults to 'main'). Every result, error results included, echoes {branch, head} — head is the branch's current commit (after a write, the commit that write made). Pass the branch explicitly whenever you are not on main. | |
| project | No | Project id. Optional when the access token is scoped to exactly one project. | |
| mentions | No | People to @mention, by the name Aldine shows (list_people). The text must contain "@Name" for each; they get an email if the server sends them. | |
| occurrence | No | 1-based occurrence to target when the quote appears more than once. | |
| suggestion | No | Replacement text for the quoted passage, offered for the people to accept. |