Add, answer, edit, resolve or delete comments
manage_commentsAdd anchored comments, reply to threads, resolve or reopen discussions, edit messages, and delete threads or replies in Overleaf's review panel, with changes applied immediately under the signed-in account.
Instructions
Change the comment threads in Overleaf's review panel. Every action takes effect in Overleaf at once, with no push step, and messages appear under the signed-in account's name, so confirm with the user first. add starts a thread on a passage, to raise a question without changing the prose. quoteText is compared literally with the document as the editor holds it now, and must occur exactly once in the document at path. When it is missing or repeated, nothing is added. reply adds a message without resolving the thread. resolve and reopen change only the thread's status, keeping the thread and its messages. delete removes a thread, its anchor and every message for everyone, and cannot be undone from here, so prefer resolve unless the thread should not exist at all. edit_message replaces the text of one message. Overleaf's editor offers that only on the account's own messages, and sending the text the message already has changes nothing. delete_message removes one reply. With review access only the account's own replies can go. A thread's first message is refused, because only delete removes it, with the whole thread. edit_message and delete_message read the thread again and fail if the change is not there. An unknown threadId is refused rather than starting a new thread, and an unknown messageId is refused with the ids the thread has. An argument the chosen action does not take is refused before anything is sent. Returns the new thread id for add, otherwise a one-line confirmation.
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": {
"action": "<action>"
},
"name": "manage_comments"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | add, required: the document to comment in, relative to the project root, for example main.tex. resolve, reopen and delete, optional: the document the thread is anchored in; without it every document is searched, which takes one read per document. | |
| action | Yes | What to do. The tool description explains each action. | |
| message | No | add, reply and edit_message, required: the comment, the reply, or a message's new text, as it should appear in the review panel. | |
| project | No | Which project to use: its Overleaf address, its 24-character id, or a registered project name. Omit to use the default project. | |
| threadId | No | reply, resolve, reopen, delete, edit_message and delete_message, required: id of the comment thread, as read_review shows it in [thread …]. | |
| messageId | No | edit_message and delete_message, required: id of the message within threadId, as read_review (view comments) shows it in [message …]. | |
| quoteText | No | add, required: the passage the comment is anchored to. |