list-mapped-task-instances
Lists all mapped task instances for a dynamically mapped task, revealing map indices and their states to guide log or detail retrieval.
Instructions
List all mapped instances for a dynamically mapped task.
Returns all mapped task instances for a task that uses Airflow's dynamic
task mapping (expand()). Each instance includes its map_index, state,
start/end times, and execution details.
Use this to discover which map indices exist and their states before
fetching logs with get-task-logs or details with get-task-instance.
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 mapped task identifier.
limit: Maximum number of mapped instances to return.
offset: Number of mapped instances to skip for pagination.
region: AWS region override.
profile_name: AWS CLI profile name override.
Returns:
CallToolResult with the list of mapped task instances.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum number of mapped instances to return. | |
| dag_id | Yes | The DAG ID. | |
| offset | No | Number of mapped instances to skip for pagination. | |
| region | No | AWS region override. | |
| task_id | Yes | The mapped task ID. | |
| 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. |