GitHub branches
github_branchesList a repository's branches with each head SHA and protection state, with pagination and optional cache bypass for up-to-date results.
Instructions
List branches with their head sha and protection state. Returns {items[{name, sha, protected}], page, per_page, has_more, next_page}.
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, 1-100, default 20 |