get-task-instance
Retrieve detailed information about a specific Airflow task instance, including its state, start/end dates, duration, and try number, with support for mapped task instances.
Instructions
Get details of a specific task instance.
Returns detailed information about a task instance including its state,
start/end dates, duration, try number, and execution details.
For dynamically mapped tasks, pass map_index to get a specific mapped instance.
Without map_index, returns the parent task summary.
Args:
ctx: The MCP context.
environment_name: Name of the MWAA environment.
dag_id: The DAG identifier.
dag_run_id: The DAG run identifier.
task_id: The task identifier.
map_index: Map index for mapped task instances (must be >= 0).
region: AWS region override.
profile_name: AWS CLI profile name override.
Returns:
CallToolResult with task instance details.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dag_id | Yes | The DAG ID. | |
| region | No | AWS region override. | |
| task_id | Yes | The task ID. | |
| map_index | No | For mapped task instances, the map index to get details for. Use list-mapped-task-instances to discover available map indices. | |
| dag_run_id | Yes | The DAG run ID. | |
| profile_name | No | AWS CLI profile name override. | |
| environment_name | No | Name of the MWAA environment. If omitted and only one environment exists, it is used automatically. |