get_dag_source
Retrieve DAG source code from Amazon MWAA environments to inspect, debug, or analyze Airflow workflow definitions.
Instructions
Get the source code of a DAG.
Args: environment_name: Name of the MWAA environment dag_id: The DAG ID
Returns: Dictionary containing the DAG source code
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>"
},
"name": "get_dag_source"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| environment_name | Yes | ||
| dag_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||