Get Branch Restriction
get_branch_restrictionRetrieve details of a specific branch restriction in a Bitbucket repository using its restriction ID and repository slug. Workspace can be provided as needed.
Instructions
Get a single branch restriction.
Args: repo_slug: Repository slug restriction_id: Numeric restriction id workspace: Workspace name (optional, defaults to configured workspace)
Returns: Branch restriction details
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>",
"restriction_id": "<restriction_id>"
},
"name": "get_branch_restriction"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| repo_slug | Yes | ||
| workspace | No | ||
| restriction_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |