list_branches
Fetch all branches of a GitHub repository with their latest commit SHAs to see the current state of each branch.
Instructions
List branches of a repository with their latest commit SHAs.
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 | Repository name (without owner) | |
| owner | No | Repo owner; defaults to GITHUB_DEFAULT_OWNER |