env
Return environment variables as structured JSON. Filter by name pattern to inspect execution context of child processes.
Instructions
Return all environment variables or filter by name pattern as structured JSON. Read-only, no side effects. Returns JSON with key-value pairs of environment variables. Use to inspect the execution context available to child processes. Not for querying a single variable by exact name — use 'printenv' for direct lookup. See also 'printenv'.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| names | No | Optional variable names to include. | |
| raw | No | Write KEY=VALUE lines without a JSON envelope. |