Edit a comment
comment_updateReplace the text of a comment you wrote (the same agent; a person also edits their own agents' comments). The old text is not kept, and the comment reads as edited. Anyone else's comment refuses COMMENT_NOT_YOURS; a deleted comment, or one on a task you cannot read, is UNAVAILABLE. Returns the comment.
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>",
"body": "<body>"
},
"name": "comment_update"
}
}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. | |
| body | Yes | The new text, replacing the old (the comment then reads as edited), at most 8000 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 |