describe_table
Inspect a SQLite table or view to get schema details, column types, keys, indexes, constraints, triggers, statistics, and sample rows for understanding data and relationships.
Instructions
Describe one table or view in depth: columns with declared type, NOT NULL, default, primary key and generated-column flags; per-column NULL percentage, distinct count, min, max and the storage types actually seen (computed over a sample of up to stats_sample rows); foreign keys in both directions; indexes; CHECK constraints; triggers; the CREATE statement; and sample rows. BLOBs are shown as size plus a hex prefix, long text is truncated with its length.
table: table or view name (case-insensitive; a close-match hint is given if it does not exist). sample_rows: how many example rows to show (0-50). stats_sample: rows to sample for the statistics (100-200000).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| table | Yes | ||
| sample_rows | No | ||
| stats_sample | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |