list_branches
List branches in a GitHub repository with the commit each points to, revealing active feature branches and the default branch before other repo operations.
Instructions
List branches in a repo and the commit each currently points to. Useful for finding active feature branches or confirming the default branch name before calling other tools.
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": "list_branches"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| repo | Yes | Repo as 'owner/name' (e.g. 'facebook/react') or a GitHub URL — usually copied straight from a search result. | |
| limit | No | How many branches to return. Default: 20, max: 100. |