List repository branches
list_repository_branchesList the branches of a GitHub repository accessible to an installation. Use the numeric installationId from list_github_installations. Lists at most the first 1,000 branches in alphabetical order, plus the default branch (flagged) when it sorts later.
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": {
"installationId": "<installationId>",
"owner": "<owner>",
"repo": "<repo>"
},
"name": "list_repository_branches"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| repo | Yes | ||
| owner | Yes | ||
| installationId | Yes | GitHub App installation id |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| branches | Yes |