get_task_logs
Retrieve logs for any Airflow task instance by specifying DAG ID, run ID, and task ID. Output is truncated to the system's maximum log line setting.
Instructions
Get logs for a task instance, truncated to AIRFLOW_LOG_MAX_LINES.
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>",
"dag_run_id": "<dag_run_id>",
"task_id": "<task_id>"
},
"name": "get_task_logs"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dag_id | Yes | ||
| task_id | Yes | ||
| dag_run_id | Yes | ||
| try_number | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |