list_tasks
Lists task definitions in an Airflow DAG, sorted by task_id or a chosen field, with optional regex filtering on task IDs to find specific tasks quickly.
Instructions
List task definitions in a DAG. This API supports order_by only (default task_id).
For state, duration, queue, pool or attempt filters, use list_task_instances. task_id_regex adds Python regex search over actual IDs, with a 1000-candidate cap.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"dag_id": "<dag_id>"
},
"name": "list_tasks"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dag_id | Yes | ||
| order_by | No | task_id | |
| task_id_regex | No |