get_env_vars
List environment variable keys from .env files with inferred types and formats, without exposing actual values. Safely inspect configuration layout for secrets management.
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 |
|---|---|---|---|
| pattern | No | Filter keys by pattern (e.g. "DB_" or "REDIS") | |
| file | Yes | Filter by specific .env file path | |
| redacted | No | Return a line-by-line redacted text view of the file (keys + type hints, no values). Requires `file`. |