create_pull_request
Create a new pull request from a source branch to a target branch in a Bitbucket Server repository, with title, description, and optional reviewers.
Instructions
Create a new pull request in a Bitbucket Server repository
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": {
"projectKey": "<projectKey>",
"repoSlug": "<repoSlug>",
"title": "<title>",
"fromRef": "<fromRef>",
"toRef": "<toRef>"
},
"name": "create_pull_request"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| title | Yes | The title of the pull request | |
| toRef | Yes | The target branch (e.g., refs/heads/main) | |
| fromRef | Yes | The source branch (e.g., refs/heads/feature-branch) | |
| repoSlug | Yes | The repository slug | |
| reviewers | No | List of reviewer usernames | |
| projectKey | Yes | The project key (e.g., PROJ) | |
| description | No | The description/body of the pull request |