create_pull_request
Create a pull request in Bitbucket to merge code changes from a source branch to a target branch, with options for description and branch management.
Instructions
Create a pull request in a Bitbucket repository.
Args:
repo_slug: Repository slug (e.g., "anzsic_classifier")
title: PR title
source_branch: Source branch name
destination_branch: Target branch (default: main)
description: PR description in markdown
close_source_branch: Delete source branch after merge (default: True)
Returns:
Created PR info with id, url, and state
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": {
"repo_slug": "<repo_slug>",
"title": "<title>",
"source_branch": "<source_branch>"
},
"name": "create_pull_request"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| title | Yes | ||
| repo_slug | Yes | ||
| description | No | ||
| source_branch | Yes | ||
| destination_branch | No | main | |
| close_source_branch | No |