Tables Get Table Ddl
tables_get_table_ddlRetrieve the exact CREATE OR REPLACE TABLE or VIEW DDL for a Snowflake object to inspect, replicate, or version its schema definition.
Instructions
Retrieve the exact CREATE OR REPLACE TABLE/VIEW DDL definition for an object.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"object_name": "<object_name>"
},
"name": "tables_get_table_ddl"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| object_name | Yes | ||
| object_type | No | TABLE |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||