get_env_vars
List environment variable keys with inferred types and formats from .env files. Understand project configuration without exposing secret values.
Instructions
List environment variable keys from .env files with inferred value types/formats. Never exposes actual values — only keys, types (string/number/boolean/empty), and formats (url/email/ip/path/uuid/json/base64/csv/dsn/etc). Read-only, no side effects, safe for secrets. Use to understand project configuration without accessing actual values. Pass redacted: true together with file to receive a line-by-line redacted view of that one file (keys + type hints, no values) — useful when ordering and comments matter, e.g. when reviewing a config layout. Returns JSON grouped by file by default: { [file]: [{ key, type, format, comment }] }.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | Yes | Filter by specific .env file path | |
| pattern | No | Filter keys by pattern (e.g. "DB_" or "REDIS") | |
| redacted | No | Return a line-by-line redacted text view of the file (keys + type hints, no values). Requires `file`. |