dag_code
Retrieve the source code of a specified Apache Airflow DAG by providing its exact DAG ID for direct inspection without API navigation.
Instructions
[Tool Role]: Retrieves the source code for the specified DAG.
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>"
},
"name": "dag_code"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dag_id | Yes | Exact DAG identifier, as returned by list_dags; not its display name. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||