create_pull_request
Create a Bitbucket pull request from a source branch to propose code changes, request reviews, and merge into a target branch.
Instructions
Create a new pull request to propose code changes, request reviews, or merge feature branches.
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": {
"repository": "<repository>",
"title": "<title>",
"sourceBranch": "<sourceBranch>",
"targetBranch": "<targetBranch>"
},
"name": "create_pull_request"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| title | Yes | Clear, descriptive title for the pull request. | |
| project | No | Bitbucket project key. If omitted, uses BITBUCKET_DEFAULT_PROJECT environment variable. Use list_projects to discover available projects. | |
| reviewers | No | Array of Bitbucket usernames to assign as reviewers. | |
| repository | Yes | Repository slug where the pull request will be created. | |
| description | No | Detailed description of changes (Markdown supported). | |
| sourceBranch | Yes | Source branch containing the changes. | |
| targetBranch | Yes | Target branch for merging. |