get_variable
Retrieve Airflow variable values by key to access configuration settings, API keys, and shared parameters stored in Airflow's metadata database.
Instructions
Get a specific Airflow variable by key.
Use this tool when the user asks about:
"What's the value of variable X?" or "Show me variable Y"
"Get variable Z" or "What does variable A contain?"
"What's stored in variable B?" or "Look up variable C"
Variables are key-value pairs stored in Airflow's metadata database that can be accessed by DAGs at runtime. They're commonly used for configuration values, API keys, or other settings that need to be shared across DAGs.
Returns variable information including:
key: The variable's key/name
value: The variable's value (may be masked if marked as sensitive)
description: Optional description of the variable's purpose
Args: variable_key: The key/name of the variable to retrieve
Returns: JSON with the variable's key, value, and metadata
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| variable_key | Yes |