createDraftPullRequest
Create a draft pull request in Bitbucket by providing workspace, repository, title, description, source and target branches. Optionally add reviewers to collaborate before publishing.
Instructions
Create a new draft 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": "createDraftPullRequest"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| 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 |