get_branch
Retrieves detailed branch information from Bitbucket, including associated pull requests and optional merged PRs. Helps you inspect branch state and related PRs.
Instructions
Get detailed information about a branch including associated pull requests
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>",
"branch_name": "<branch_name>"
},
"name": "get_branch"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| workspace | Yes | Bitbucket workspace/project key (e.g., "PROJ") | |
| repository | Yes | Repository slug (e.g., "my-repo") | |
| branch_name | Yes | Branch name to get details for | |
| include_merged_prs | No | Include merged PRs from this branch (default: false) |