read_dag
Reads an Airflow DAG from a file path or inline content, returning source code, file path, size, and line count for direct code analysis.
Instructions
Read an Airflow DAG file and return raw source with metadata.
Accepts a file path or inline content. Returns the source code, file path, size, and line count. The LLM reads the code directly.
Args: path: Path to a DAG file on disk. content: Inline DAG source code.
Returns: JSON with source, file_path, file_size_bytes, line_count — or error.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | ||
| content | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |