db_schema
Access local database schema snapshot to inspect tables, columns, types, keys, indexes, enums, and RLS policies. No DB connection needed; run db_snapshot first.
Instructions
Read the local database schema snapshot. Returns tables, columns, types, primary keys, foreign keys, indexes, enums, and RLS policies. No DB connection needed — reads from .vectors/db-schema.json. Run db_snapshot first to create or refresh the snapshot.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| table | No | Filter output to a specific table name (e.g. "articles" or "public.articles"). Returns all tables if omitted. | |
| format | No | Output format: compact (default, human-readable summary), full (complete JSON), sql (CREATE TABLE DDL). | |
| include_indexes | No | Include index definitions in output (default: true) | |
| include_policies | No | Include RLS policies in output (default: true) |