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'.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "printenv"
}
}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. |