createPullRequest
Create a pull request in a Bitbucket repository, optionally from a fork, with reviewers, description, and draft status.
Instructions
Create a pull request (from a fork: set sourceProjectKey/sourceRepoSlug)
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 PR | |
| title | Yes | ||
| repoSlug | Yes | ||
| reviewers | No | ||
| projectKey | No | ||
| description | No | ||
| sourceBranch | Yes | ||
| targetBranch | Yes | ||
| sourceRepoSlug | No | Fork repo slug | |
| sourceProjectKey | No | Fork project, e.g. ~USER |