Get Table Schema
getTableSchemaRetrieve column definitions and foreign key relationships for a specified table to understand its structure before writing queries.
Instructions
Get column definitions and foreign key relationships for a table. Requires table — call listTables first.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| table | Yes | The table name to inspect. Use `listTables` first to see available tables. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| columns | Yes | Column definitions keyed by column name. | |
| table | Yes | Name of the inspected table. |