getBranchRestrictions
Retrieve branch restrictions and permissions for a repository to control who can push, delete, or modify protected branches. Filter results by restriction type or matcher pattern.
Instructions
List branch restrictions (permissions)
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": {
"repoSlug": "<repoSlug>"
},
"name": "getBranchRestrictions"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| all | No | All pages, max 1000 | |
| type | No | e.g. read-only, no-deletes, pull-request-only | |
| limit | No | ||
| start | No | ||
| repoSlug | Yes | ||
| projectKey | No | ||
| matcherType | No | e.g. BRANCH, PATTERN |