Add a review comment
add_commentAttach a review comment thread to a specific passage in a .tex file, marking it like an Overleaf editor highlight to give targeted, location-based feedback.
Instructions
Start a new review comment thread on a passage of a .tex file, as if highlighting it in the Overleaf editor. Web mode only (opt-in, see README).
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>",
"text": "<text>",
"comment": "<comment>"
},
"name": "add_comment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | File the passage is in. | |
| text | Yes | Exact passage to comment on (as it appears in the file). | |
| comment | Yes | Comment text. | |
| project | No | Project ID or Overleaf project URL (or project name in web mode). Defaults to OVERLEAF_PROJECT_ID. | |
| occurrence | No | Which match to use if `text` appears more than once (1-based). |