printenv
Fetch the value of a specific environment variable by name, or display all variables if no name is provided. Returns results as JSON for easy integration.
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 |
|---|---|---|---|
| raw | No | Write values or KEY=VALUE lines without a JSON envelope. | |
| names | No | Optional variable names to print. |