airflow_get_task_instance
Retrieve detailed metadata, configuration, and execution history for a specific task instance in Apache Airflow workflows to monitor performance and troubleshoot issues.
Instructions
Return task metadata, config, attempt summary, optional rendered fields, and UI URLs.
Parameters
instance | ui_url: Target selection (URL precedence)
dag_id, dag_run_id, task_id: Required identifiers (unless resolved from ui_url)
include_rendered: When true, include rendered template fields (truncated using max_rendered_bytes)
max_rendered_bytes: Byte cap for rendered fields payload (default 100KB; accepts int/float/str, coerced to positive int, fractional values truncated)
Returns
Response dict: { "task_instance": {...}, "task_config": {...}, "attempts": {...}, "ui_url": {...}, "request_id": str, "rendered_fields"?: {...} }
Notes
attempts.try_numberis the authoritative input forairflow_get_task_instance_logs.Rendered fields include
bytes_returnedandtruncatedmetadata.Sensors increment
try_numberon every reschedule, so treat it as an attempt index; the derived retries counters are heuristic.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| instance | No | ||
| ui_url | No | ||
| dag_id | No | ||
| dag_run_id | No | ||
| task_id | No | ||
| include_rendered | No | ||
| max_rendered_bytes | No |