Delete a comment thread
delete_commentPermanently removes a comment thread and all its messages; use only when the thread should disappear entirely, since this action cannot be undone.
Instructions
Permanently deletes a comment thread and all its messages (Overleaf's 'Delete' in the thread menu). Cannot be undone; prefer resolve_comment unless the thread should disappear entirely. Also works for orphaned threads (see list_comments).
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>"
},
"name": "delete_comment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| doc_id | No | Id of the doc the thread is anchored in (`doc_id` from list_comments). Looked up automatically if omitted. | |
| thread_id | Yes | The thread id, e.g. from list_comments. | |
| 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. |