db_setup_scan
Discover an instance's DB credentials from app config read-only over SSH and return redacted previews plus a staging token, so database tools can be set up without manual configuration.
Instructions
Discover an instance's DB credentials (from .env / DATABASE_URL / wp-config.php / docker env) to set up the db tools with no manual config. Reads the app config READ-ONLY over SSH on the box. Returns REDACTED previews + a staging token per candidate; the password is held server-side and never returned, so it can't leak into your context. Then call db_setup_save with the chosen token. Read-only.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| source | No | Where to scan: 'auto'/'ssh' read the box (default), 'local' reads search_path locally. | auto |
| instance_id | Yes | Instance ID or name. '<account>/<name>' picks the server of one provider account; custom servers are 'custom/<name>'. | |
| search_path | No | Optional dir on the box to search (or a local .env path). Empty = scan common web roots. |