List config git commits
git_logList recent commits in the Home Assistant config Git repository to review configuration changes before a rollback or diff; returns short SHA, message, author, and date.
Instructions
List recent commits in the HA config git repository.
Calls _repo() and returns up to limit commits from
repo.iter_commits, most recent first, with short SHA, message, author
name and ISO commit date.
Use when: reviewing recent config changes before a rollback or diff.
Returns: list[dict] {"sha", "message", "author", "date"}.
Errors: raises RuntimeError (from _repo()) when gitpython is not
installed or no git repo exists yet — run git_init_config first.
Limits: limit caps the number of commits returned; no further
pagination is offered.
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_log"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum number of commits to return, most recent first. Defaults to 20. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |