get_db_schema
Retrieve a condensed Postgres schema snapshot from SQL migrations to inspect tables, columns, keys, indexes, and RLS policies.
Instructions
Condensed SQL-migration snapshot: tables (cols, types, nullability, defaults), PKs, FKs, indexes, RLS policies.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tables | No | Optional filter: only return these table names. | |
| dialect | No | SQL dialect -- currently only 'postgres' is implemented. | |
| project | No | Project name/path (default: active). | |
| migrations_dir | No | Relative or absolute path to the migrations directory (default: auto-detect). |