Create PR
create_prOpen a new pull request in Bitbucket with title, markdown description, branches, and reviewers. Defaults to current branch and main branch when not specified.
Instructions
Open a new pull request. source_branch defaults to the current git branch when run from inside a checkout. destination_branch defaults to the repository's configured main branch on Bitbucket. description is interpreted as Markdown. reviewers is a list of Bitbucket account UUIDs (including the curly braces).
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>"
},
"name": "create_pr"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| repo | No | Bitbucket repo slug. | |
| title | Yes | PR title. | |
| reviewers | No | Reviewer account UUIDs (e.g. `{abcd-...}`). | |
| workspace | No | Bitbucket workspace (slug). | |
| description | No | PR description (Markdown). | |
| source_branch | No | Source branch name. Defaults to the current git branch. | |
| destination_branch | No | Destination branch name. Defaults to the repo's main branch. | |
| close_source_branch | No | If true, the source branch is deleted on merge. |