delete_comment
Delete a comment from a pull request. Requires the comment version for optimistic locking.
Instructions
Delete a comment from a pull request. 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>",
"version": "<version>"
},
"name": "delete_comment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| prId | Yes | Pull request ID the comment belongs to. | |
| 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. | |
| commentId | Yes | ID of the comment to delete. | |
| repository | Yes | Repository slug containing the pull request. |