get_task_logs
Retrieve execution logs for specific Apache Airflow tasks in MWAA environments to monitor workflow performance and troubleshoot issues.
Instructions
Get logs for a specific task instance.
Args: environment_name: Name of the MWAA environment dag_id: The DAG ID dag_run_id: The DAG run ID task_id: The task ID task_try_number: Specific try number (optional)
Returns: Dictionary containing task logs
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": {
"environment_name": "<environment_name>",
"dag_id": "<dag_id>",
"dag_run_id": "<dag_run_id>",
"task_id": "<task_id>"
},
"name": "get_task_logs"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| environment_name | Yes | ||
| dag_id | Yes | ||
| dag_run_id | Yes | ||
| task_id | Yes | ||
| task_try_number | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||