get_log
Retrieve task execution logs from Apache Airflow by specifying DAG ID, task ID, run ID, and try number for monitoring and debugging workflows.
Instructions
Get the log from a task instance by DAG ID, task ID, DAG run ID and task 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": {
"dag_id": "<dag_id>",
"task_id": "<task_id>",
"dag_run_id": "<dag_run_id>",
"task_try_number": "<task_try_number>"
},
"name": "get_log"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dag_id | Yes | ||
| task_id | Yes | ||
| dag_run_id | Yes | ||
| task_try_number | Yes |