Parameters
Defining Parameters
Using Parameters
Passing Parameters
Exports
Exports pass values from one step to the next.Basic Export
Export Sources
| Source | Description |
|---|---|
{{stdout}} | Command standard output |
{{stderr}} | Command standard error |
{{exit_code}} | Command exit code |
{{http_status_code}} | HTTP response status |
{{http_response_body}} | HTTP response body |
{{llm_response}} | LLM chat response |
HTTP Exports
Function Exports
Variable Scope
Step-Level Scope
Exports are available to all subsequent steps:Foreach Variable Scope
Loop variables use[[]] syntax and are only available inside the loop:
Resolution Order
Variables are resolved in this order:- Exports from previous steps
- Parameters from user input
- Built-in variables (Target, Output, etc.)
- Environment variables
Nested Variables
Variables can contain other variables:Generator Functions
Use in parameter defaults:uuid()- UUID v4currentDate()- YYYY-MM-DDcurrentTimestamp()- Unix timestamprandomInt(min, max)- Random integerrandomString(len)- Random stringgetEnvVar(key, default)- Environment variable
Flow Variable Propagation
Flow to Module
Module Exports in Flow
Module exports are not automatically available to other modules. Use shared output files:Common Patterns
Chained Processing
Conditional on Export
Environment Variables
Best Practices
-
Use descriptive export names
-
Document parameter meanings
-
Provide sensible defaults
-
Use files for large data
Next Steps
- Control Flow - Using exports in conditions
- Templates - Template syntax
- Functions Reference - Available functions