list_import_errors
Retrieve import errors from DAG files that failed to parse or load in Apache Airflow, helping diagnose why DAGs aren't appearing or have syntax issues.
Instructions
Get import errors from DAG files that failed to parse or load.
Use this tool when the user asks about:
"Are there any import errors?" or "Show me import errors"
"Why isn't my DAG showing up?" or "DAG not appearing in Airflow"
"What DAG files have errors?" or "Show me broken DAGs"
"Check for syntax errors" or "Are there any parsing errors?"
"Why is my DAG file failing to load?"
Import errors occur when DAG files have problems that prevent Airflow from parsing them, such as:
Python syntax errors
Missing imports or dependencies
Module not found errors
Invalid DAG definitions
Runtime errors during file parsing
Returns import error details including:
import_error_id: Unique identifier for the error
timestamp: When the error was detected
filename: Path to the DAG file with the error
stack_trace: Complete error message and traceback
Returns: JSON with list of import errors and their stack traces
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||