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.
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. |