bb_create_pull_request
Create a Bitbucket pull request by specifying title, source and destination branches, description, and reviewers. Optionally set to delete source branch after merge.
Instructions
Create a new Bitbucket pull request.
Args: title: PR title. source_branch: Source branch name. destination_branch: Destination branch name (default "main"). description: PR description (Markdown). reviewers: List of Bitbucket account UUIDs. close_source_branch: Delete source branch after merge. workspace: Bitbucket workspace slug. repo: Repository slug.
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": {
"title": "<title>",
"source_branch": "<source_branch>"
},
"name": "bb_create_pull_request"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| repo | No | Repository slug. Defaults to BITBUCKET_DEFAULT_REPO. | |
| title | Yes | PR title. | |
| reviewers | No | List of Bitbucket account UUIDs to request as reviewers. | |
| workspace | No | Bitbucket workspace slug. Defaults to BITBUCKET_WORKSPACE. | |
| description | No | PR description (Markdown). | |
| source_branch | Yes | Source branch name. | |
| destination_branch | No | Destination branch name. | main |
| close_source_branch | No | Delete the source branch after merge. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||