Get HA error log
history_get_error_logDiagnose recent warnings and errors across your entire Home Assistant instance by fetching the error log as plain text from the log file or system_log records.
Instructions
Fetch Home Assistant's error log as plain text.
Prefers the raw log file via GET /api/error_log. That view only
exists when HA logs to a file — Supervisor installs ship with
duplicate_log_file: false, so it 404s there, in which case the
warning/error records held by the system_log integration are rendered
into log-file-like text instead.
Use when: diagnosing recent warnings/errors across the whole instance.
Not for: one entity's history or logbook — use
history_get_state_history or history_get_logbook.
Returns: plain-text log content, from either source.
Errors: re-raises httpx.HTTPStatusError for any status other than 404
from /api/error_log.
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": "history_get_error_log"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |