get_core_log
Retrieve the Home Assistant core log as plain text. Optionally filter lines with case-insensitive grep and return only the last N lines.
Instructions
Fetch the Home Assistant Core log as plain text.
Replaces the upstream get_error_log tool, which hits /api/error_log —
an endpoint removed in HA 2026.5+. This uses the Supervisor proxy
/api/hassio/core/logs/latest instead.
Args:
tail: If set, return only the last N lines after any grep filtering.
grep: Optional case-insensitive substring filter applied per line
(e.g. "http.ban" to find failed login attempts).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tail | No | ||
| grep | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |