get_table_ddl
Generate CREATE TABLE DDL scripts for existing database tables, including columns, constraints, and optional indexes to document or replicate table structures.
Instructions
Generates CREATE TABLE DDL script for an existing table, including columns, constraints, and optionally indexes.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tableName | Yes | Name of the table to generate DDL for (can include schema: schema.table) | |
| includeIndexes | No | Include index definitions (default: true) | |
| includeConstraints | No | Include foreign key constraints (default: true) |