create_pull_request
Open a pull request in Bitbucket Cloud to propose code changes. Specify the title and source branch, with optional description, destination branch, and closing the source branch.
Instructions
Open 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": {
"title": "<title>",
"source_branch": "<source_branch>"
},
"name": "create_pull_request"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| title | Yes | ||
| description | No | ||
| source_branch | Yes | ||
| destination_branch | No | ||
| close_source_branch | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| state | Yes | ||
| title | Yes | ||
| author | Yes | ||
| source | Yes | ||
| reviewers | Yes | ||
| approved_by | Yes | ||
| description | Yes | ||
| destination | Yes | ||
| comment_count | Yes | ||
| close_source_branch | Yes | ||
| changes_requested_by | Yes |