create-pull-request
Open a new Bitbucket pull request by specifying the repository, title, and source branch; optionally set reviewers, description, destination branch, and close-source behavior.
Instructions
Create a new pull request in a repository
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": {
"repo_slug": "<repo_slug>",
"title": "<title>",
"source_branch": "<source_branch>"
},
"name": "create-pull-request"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| title | Yes | Title of the pull request | |
| repo_slug | Yes | Repository slug/name | |
| reviewers | No | List of reviewer account UUIDs (e.g. '{account-uuid}') | |
| workspace | No | Bitbucket workspace name. Falls back to BITBUCKET_WORKSPACE env var if not provided. | |
| description | No | Description of the pull request (supports Markdown) | |
| source_branch | Yes | Source branch name (the branch with your changes) | |
| destination_branch | No | Destination branch name (defaults to the repository's main branch) | |
| close_source_branch | No | Whether to close the source branch after the PR is merged |