createPullRequest
Creates a new Bitbucket pull request from a source branch to a target branch, with optional title, description, reviewers, and draft status.
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": {
"repoSlug": "<repoSlug>",
"title": "<title>",
"sourceBranch": "<sourceBranch>",
"targetBranch": "<targetBranch>"
},
"name": "createPullRequest"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| draft | No | Create as draft pull request | |
| title | Yes | Pull request title | |
| repoSlug | Yes | Repository slug | |
| reviewers | No | List of reviewer UUIDs | |
| workspace | No | Bitbucket workspace name | |
| description | No | Pull request description | |
| sourceBranch | Yes | Source branch name | |
| targetBranch | Yes | Target branch name | |
| closeSourceBranch | No | Close source branch after merge |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes | Tool-specific result payload | |
| status | Yes | Whether the tool call succeeded | |
| message | Yes | Human-readable status message |