Show config git status
git_statusInspect the /config Git repository to view the active branch, staged, modified, and untracked files plus a dirty flag before committing or writing files.
Instructions
Show git status of the HA config directory.
Calls _repo() for the /config git repo and returns the active branch,
staged/modified/untracked file lists (repo.index.diff,
repo.untracked_files) and an overall dirty flag.
Use when: checking what changed in /config before committing or
writing a file.
Returns: dict {"branch", "staged", "modified", "untracked", "is_dirty"}.
Errors: raises RuntimeError (from _repo()) when gitpython is not
installed or no git repo exists yet at HA_CONFIG_PATH — 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_status"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||