list_branch_restrictions
Retrieve branch restrictions for a repository to see which users or groups can push to or delete specific branches.
Instructions
List branch restrictions for a repository. These control which users/groups can push to or delete specific branches or branch patterns.
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": {
"repository": "<repository>"
},
"name": "list_branch_restrictions"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum number of results to return (default: 25, max: 100). | |
| start | No | Start index for pagination (default: 0). | |
| project | No | Project key. Defaults to BITBUCKET_DEFAULT_PROJECT. | |
| repository | Yes | Repository slug. |