edit_comment
Edit an existing comment on a pull request. Use this to fix typos, update information, or reformat comments. Requires the comment version for optimistic locking.
Instructions
Edit an existing comment on a pull request. Use this to fix typos, update information, or reformat comments. Requires the comment version for optimistic locking.
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": {
"repository": "<repository>",
"prId": "<prId>",
"commentId": "<commentId>",
"text": "<text>",
"version": "<version>"
},
"name": "edit_comment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| prId | Yes | Pull request ID the comment belongs to. | |
| text | Yes | New text content for the comment. Supports Markdown. | |
| project | No | Bitbucket project key. If omitted, uses BITBUCKET_DEFAULT_PROJECT environment variable. | |
| version | Yes | Current version of the comment (for optimistic locking). Obtain from get_comments or add_comment response. | |
| severity | No | Comment severity. Use BLOCKER to convert to a task, NORMAL to convert back to a comment. | |
| commentId | Yes | ID of the comment to edit. | |
| repository | Yes | Repository slug containing the pull request. |