List config git branches
git_list_branchesLists all local branches in the Home Assistant config Git repository so you can inspect available branches before switching or merging.
Instructions
List all local branches in the HA config git repository.
Calls _repo() and returns every local branch name from
repo.branches.
Returns: list[str] of local branch names.
Errors: raises RuntimeError (from _repo()) when gitpython is not
installed or no git repo exists yet — run git_init_config first.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "git_list_branches"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |