add_comment
Add a comment to selected text in an Overleaf document, using the file version to prevent conflicts and keep content unchanged.
Instructions
Create a native anchored comment on unique selected text. expected_version must come from read_file. Refuses stale versions. Does not change document text.
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>",
"selected_text": "<selected_text>",
"content": "<content>",
"expected_version": "<expected_version>"
},
"name": "add_comment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| content | Yes | ||
| selected_text | Yes | ||
| expected_version | Yes |