manage_comment
Edit, delete, resolve, or reopen Bitbucket PR comments and tasks, or convert between them. Supply a version to make writes conditional and prevent overwrites.
Instructions
Edit/delete/resolve/reopen a PR comment or task, or convert between comment and task (to_task/to_comment are Server-only). Pass version (from get_pull_request output) to save a fetch (Server).
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": {
"workspace": "<workspace>",
"repository": "<repository>",
"pull_request_id": "<pull_request_id>",
"comment_id": "<comment_id>",
"action": "<action>"
},
"name": "manage_comment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | No | New text (edit only) | |
| action | Yes | ||
| version | No | Entity version from a prior read; supplying it saves a fetch AND makes the write conditional — it fails on concurrent modification instead of overwriting. Omit to write against the latest state (auto-retried once). | |
| workspace | Yes | Project key (e.g., PROJ) | |
| comment_id | Yes | ||
| repository | Yes | Repository slug | |
| pull_request_id | Yes | Pull request ID |