create_pull_request
Open a new Bitbucket pull request to merge a source branch into a destination branch. Specify workspace, repo, title, and source branch to submit code changes for review.
Instructions
Create a new pull request
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>",
"repo_slug": "<repo_slug>",
"title": "<title>",
"source_branch": "<source_branch>"
},
"name": "create_pull_request"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| draft | No | Create PR as draft | |
| title | Yes | PR title | |
| repo_slug | Yes | Repository slug | |
| reviewers | No | Array of reviewer UUIDs or account IDs | |
| workspace | Yes | Bitbucket workspace slug | |
| description | No | PR description (markdown) | |
| source_branch | Yes | Source branch name | |
| destination_branch | No | Destination branch (defaults to repo main branch) | |
| close_source_branch | No | Delete source branch after merge |