perseus_env
Embed environment variables into workspace state, with optional fallback and JSON Schema validation. Fail render when a required variable is unset.
Instructions
Embed environment variable
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| schema | No | JSON Schema to validate the env var value against | |
| fallback | No | Value to use when the environment variable is not set | |
| required | No | If 'true', render fails when the variable is unset |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| value | No | Resolved value or fallback | |
| source | No | Where the value was resolved from | |
| variable | No | Environment variable name |