Delete a message from a comment thread
delete_comment_messageDelete a single message, such as a reply, from an Overleaf comment thread while keeping the rest of the thread intact. Targets your own messages by default; cannot be undone.
Instructions
Deletes one message (e.g. a reply) from a thread, leaving the rest of the thread. Own messages by default; any_author: true deletes someone else's, which Overleaf only allows for the project owner. Cannot be undone.
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": {
"thread_id": "<thread_id>",
"message_id": "<message_id>"
},
"name": "delete_comment_message"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| thread_id | Yes | The thread id, e.g. from list_comments. | |
| any_author | No | Delete a message written by someone else. Overleaf only allows this for the project owner. Default: own messages only. | |
| message_id | Yes | The message id, from read_comment_thread (`messages[].id`). | |
| 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. |