env object. Access them anywhere a field
accepts a string using {{ env.NAME }}, or directly as env.NAME inside
JavaScript steps.
See Environment variables for the full
list of reserved variables and how Momentic loads them at runtime.
Example
Extract a value, then use it in a later step:extract-order-id.test.yaml
Setting variables
From JavaScript
From any step with a return value
Steps like AI extract and JavaScript expose a Save to environment variable option. Provide a key; the step’s return value is written toenv
after execution.

Scope
All variables are test-scoped. Set a variable in one step; any subsequent step in the same test can read it.Module parameters
Module parameters are variables scoped to the module’s execution. A parameter namedAPI_KEY is available as {{ env.API_KEY }} inside that module.