Read Database Connection Env
setup_read_envVerify current configuration settings of a RESTForge project by reading the db-connection.env file, with sensitive data automatically masked.
Instructions
Read and parse the config/db-connection.env file, returning all parameters as KEY=value lines. Sensitive fields (LICENSE, DB_PASSWORD, REDIS_PASSWORD, KAFKA_SASL_PASSWORD) are masked by default.
USE WHEN:
The user asks to see the active/current configuration, parameters, settings, or env values of a RESTForge project
The user asks questions like "tampilkan parameter yang aktif", "config apa yang sudah di-set", "show current settings", "cek konfigurasi", "what's configured in this project"
Verifying the current configuration before calling 'setup_write_env' or 'setup_update_env' to make changes
Auditing the active config after a change
Listing every parameter present in the file (including optional sections like Live Sync, Redis, Kafka, Logging)
Checking whether a RESTForge project has been set up at all (this tool returns a clear "file not found" precondition if not)
DO NOT USE FOR:
Writing values -> use 'setup_write_env' or 'setup_update_env'
Validating connection -> use 'setup_validate_config'
This tool is READ-ONLY and safe to call repeatedly. Pass unmask=true to see real values of sensitive fields (use with care).
PRESENTATION GUIDANCE:
Match the user's language. If the user writes in Indonesian, respond in Indonesian.
Never mention internal tool names in the reply to the user. Describe actions by what they do (e.g. "set up the initial config", "fill in the credentials", "update a single value", "validate the connection").
Speak in plain language. Summarise the result; do not paste the full KEY=value list unless the user explicitly asks for it.
Even when unmask=true, do not echo sensitive values (license keys, passwords) into chat unless the user explicitly asks. Prefer to confirm presence and length only.
When a precondition is not met (e.g. config file is missing), frame it as a question or next-step suggestion rather than an error.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | Yes | Absolute path of the project folder | |
| configFile | No | Config file name in the config/ folder. Default: db-connection.env | db-connection.env |
| unmask | No | When true, show real values of sensitive fields (LICENSE, *_PASSWORD). Default: false |