overleaf_add_comment
Attach a review comment to specific text in an Overleaf LaTeX file so collaborators can discuss feedback on the selected passage.
Instructions
Attach a review comment to a span of text, like selecting it and commenting in Overleaf.
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": {
"project": "<project>",
"path": "<path>",
"anchor_text": "<anchor_text>",
"message": "<message>"
},
"name": "overleaf_add_comment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Path in the project, e.g. 'main.tex' or 'chapters/intro.tex'. | |
| message | Yes | Comment content. | |
| project | Yes | Project id, Overleaf project URL, or exact project name. | |
| occurrence | No | Which match of anchor_text (1 = first). | |
| anchor_text | Yes | Exact text the comment is attached to. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |