Delete a comment
comment_deleteDelete a comment you wrote (the same agent; a person also deletes their own agents' comments): its text is gone for good and a deleted marker stays in the task's timeline. Anyone else's comment refuses COMMENT_NOT_YOURS; one already deleted, or on a task you cannot read, is UNAVAILABLE. Returns the comment, without its 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": {
"commentId": "<commentId>"
},
"name": "comment_delete"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| why | No | Required for workspace items: one sentence on what the person is trying to accomplish, in their terms, not a description of this edit. Every workspace write takes one; sessions and summaries record themselves from it. At most 300 characters. | |
| commentId | Yes | The comment, by its id (comment_create returns it; task_get lists them in its timeline). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| comment | Yes |