createPullRequest
Create a new pull request between source and target branches in a Bitbucket repository, with support for draft, reviewers, and branch closing options.
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>",
"description": "<description>",
"sourceBranch": "<sourceBranch>",
"targetBranch": "<targetBranch>"
},
"name": "createPullRequest"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| draft | No | Whether to create the pull request as a draft | |
| title | Yes | Pull request title | |
| repo_slug | Yes | Repository slug | |
| reviewers | No | List of reviewer UUIDs (e.g., '{04776764-62c7-453b-b97e-302f60395ceb}') | |
| workspace | Yes | Bitbucket workspace name | |
| description | Yes | Pull request description | |
| sourceBranch | Yes | Source branch name | |
| targetBranch | Yes | Target branch name | |
| close_source_branch | No | Whether to close source branch after merge (default: true) |