Update pull request
bb_update_pull_requestUpdate a pull request's title, description, or target branch. Specify only the fields to change; existing values are kept when a field is omitted.
Instructions
Update title, description or target branch of a pull request. Server/DC uses optimistic locking (re-fetch + one retry on 409); Cloud has no version field and applies a single partial PUT.
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": {
"projectKey": "<projectKey>",
"repositorySlug": "<repositorySlug>",
"pullRequestId": "<pullRequestId>"
},
"name": "bb_update_pull_request"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| title | No | New title (omit to keep current). | |
| toBranch | No | Retarget to this branch (omit to keep current). | |
| projectKey | Yes | Project key (target repository; on Cloud: workspace slug). | |
| description | No | New description (omit to keep current). | |
| pullRequestId | Yes | Pull request id. | |
| repositorySlug | Yes | Target repository slug. |