get-dag-logs
Retrieve logs for an Airflow DAG run, optionally filtered by task ID and try number, to diagnose failures and inspect execution details.
Instructions
Get logs for a DAG run
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>",
"run_id": "<run_id>"
},
"name": "get-dag-logs"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dag_id | Yes | ||
| run_id | Yes | ||
| task_id | No | Get logs for specific task | |
| try_number | No | The try number of the task execution |