List automation/script traces
ha_list_tracesList recent automation or script runs: when they ran, if they finished, and how they stopped. Omit the item to see runs across the entire domain. A 'failed_condition' means a condition blocked it.
Instructions
List recent runs of an automation or script: when it ran, whether it finished, and how it stopped ('failed_condition' means a condition blocked it). Omit 'item' to list runs across everything in the domain. Home Assistant keeps a limited number of traces per item (5 by default), and none from before the last restart.
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": "ha_list_traces"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| item | No | entity_id or unique id (automation.x / the unique id; script.y / y). Omit for all. | |
| limit | No | Maximum runs to return, newest first (default 20). | |
| domain | No | Which kind of item to list traces for (default 'automation'). | |
| instance_id | No | Optional: the instance you mean (as listed by vomehome_list_instances). When given, the call is refused if this session is targeting a different home, instead of answering from it. |