Update PR Comment
bitbucket_update_pull_request_commentReplace the text of an existing pull request comment by supplying its ID and current version for optimistic locking.
Instructions
Update an existing comment on a pull request.
Requires the current comment version number 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": {
"project_key": "<project_key>",
"repository_slug": "<repository_slug>",
"pull_request_id": "<pull_request_id>",
"comment_id": "<comment_id>",
"version": "<version>",
"text": "<text>"
},
"name": "bitbucket_update_pull_request_comment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | The new comment text (supports Markdown) | |
| version | Yes | Current version of the comment (for optimistic locking — get from bitbucket_get_pull_request_comments) | |
| comment_id | Yes | The comment ID to update | |
| project_key | Yes | The project key | |
| pull_request_id | Yes | The pull request ID number | |
| repository_slug | Yes | The repository slug |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |