GitHub branches
github_branchesLists repository branches with their head SHA and protection status, helping you inspect branch state and protections during code review or automation.
Instructions
List branches with their head sha and protection 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": "<repo>"
},
"name": "github_branches"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | No | Page number, starting at 1 | |
| repo | Yes | Repository in owner/name form | |
| fresh | No | Bypass the local cache | |
| per_page | No | Items per page, default 20 |