airflow_list_task_instances
List task instances in a DAG run with state, attempt number, and log URLs. Filter by state or task IDs.
Instructions
List task instances within one DAG run, including state and attempt log URLs.
Parameters
instance: Instance key (optional)
ui_url: Airflow UI URL to resolve instance/dag/dag_run (optional)
dag_id: DAG identifier
dag_run_id: DAG run identifier
limit: Max results (default 100; accepts int/float/str, coerced to non-negative int, fractional values truncated)
offset: Offset for pagination (default 0; accepts int/float/str, coerced to non-negative int, fractional values truncated)
state: Optional list of task states (case-insensitive). When provided, only matching states are returned.
task_ids: Optional list of task identifiers to include.
Returns
Response dict: { "task_instances": [{ "task_id", "state", "try_number", "ui_url" }], "count": int, "total_entries"?: int, "filters"?: { "state": [...], "task_ids": [...] }, "request_id": str }
Raises: ToolError with compact JSON payload (
code,message,request_id, optionalcontext)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | ||
| state | No | ||
| dag_id | No | ||
| offset | No | ||
| ui_url | No | ||
| instance | No | ||
| task_ids | No | ||
| dag_run_id | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||