create_pull_request
Create a Bitbucket pull request to propose merging source branch changes into a destination branch, with optional reviewers, description, and attachments.
Instructions
Create a 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>",
"repository": "<repository>",
"title": "<title>",
"source_branch": "<source_branch>",
"destination_branch": "<destination_branch>"
},
"name": "create_pull_request"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| title | Yes | ||
| reviewers | No | Reviewer usernames | |
| workspace | Yes | Project key (e.g., PROJ) | |
| repository | Yes | Repository slug | |
| attachments | No | Local files to upload & embed (Server/DC only). Item: path string or {file_path, alt_text?, render?: image|link|auto} | |
| description | No | ||
| source_branch | Yes | ||
| destination_branch | Yes | ||
| close_source_branch | No |