printenv
Retrieve environment variable values by name or list all variables. Returns JSON for direct lookup of known variable names.
Instructions
Return the value of a specific environment variable by name, or all variables if no name given. Read-only, no side effects. Returns JSON with the variable value. Use for direct lookup of known variable names. Not for listing all variables with filtering — use 'env' for pattern-based filtering. See also 'env'.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| names | No | Optional variable names to print. | |
| raw | No | Write values or KEY=VALUE lines without a JSON envelope. |