airflow-get-task-logs
Fetch the tail of an Airflow task instance log to quickly review the most recent output or errors for a specific try number.
Instructions
Fetch the tail (last N kB) of an Airflow task instance log for a specific try_number
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": {
"dagId": "<dagId>",
"dagRunId": "<dagRunId>",
"taskId": "<taskId>"
},
"name": "airflow-get-task-logs"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dagId | Yes | ||
| dagRunId | Yes | ||
| taskId | Yes | ||
| tryNumber | No | ||
| tailKb | No | Return only the last N kilobytes of log | |
| extractFields | No | Comma-separated dotted paths to project from response (e.g. 'id,name,owner.name,columns.*.name'). Use `*` as wildcard for arrays/objects. Wrap field names with dots in backticks. Reduces response tokens dramatically on large entities. |