get_error_log
Retrieve Home Assistant error logs with filters for integration, level, and time range. Stacktraces truncated to 3 lines by default. Use to identify issues from specific integrations or recent errors.
Instructions
Get the Home Assistant error log (WebSocket API). Stacktraces truncated by default.
Args: limit: Max records (1-100, default: 50) integration: Filter by integration (e.g. "mqtt", "zwave") level: Filter by level: "ERROR" or "WARNING" since_minutes: Only errors from last N minutes truncate_traces: Truncate stacktraces to 3 lines (default: True)
Examples: get_error_log(integration="mqtt") get_error_log(level="ERROR", since_minutes=60)
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_error_log"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | ||
| integration | No | ||
| level | No | ||
| since_minutes | No | ||
| truncate_traces | No |