Add a review-panel comment
add_commentStart a new comment thread anchored to exact quoted text in a project document, without changing the text. Use it for questions or suggestions that should not be edits.
Instructions
Starts a new comment thread anchored to quoted_text in a doc, exactly like selecting text in Overleaf and clicking 'Add comment'. The text itself is not changed. Use this for questions or suggestions that should not be edits.
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": {
"quoted_text": "<quoted_text>",
"content": "<content>"
},
"name": "add_comment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | Project-relative path of the doc to comment on, e.g. 'sec/intro.tex'. Defaults to the project's root doc. | |
| content | Yes | The comment text. | |
| occurrence | No | 1-based index of the match to anchor on when `quoted_text` occurs more than once. | |
| project_id | No | Overleaf project id from list_projects or open_project. Opens the project if it is not already active. Pass it on every call when MCP sessions may change between calls. Writes without it only go to the project last confirmed by open_project or by a write naming it. | |
| quoted_text | Yes | Exact text the comment is anchored to (highlighted in the editor), matched byte-for-byte. Must occur exactly once in the doc unless `occurrence` picks one. |