Get logbook
get_logbookRetrieve Home Assistant logbook entries from the last N hours, optionally filtered to one entity, to see what happened and why. Use limits to keep the newest records.
Instructions
Logbook entries (what happened and why) over the last N hours, optionally for a single entity.
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": "get_logbook"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| hours | No | How far back to look. | |
| limit | No | Maximum entries, newest kept. | |
| entity_id | No | Restrict to one entity. |