Base Saveddl
base_saveDDLExport Teradata table, view, or procedure DDL to a .sql file on disk. Supports bulk retrieval and custom output directories for persistent storage.
Instructions
Extract the DDL for a Teradata table, view, or stored procedure and SAVE it as a .sql file on disk. Use this tool ONLY when the user explicitly wants to export, write, download, or persist DDL to a file. Do NOT use simply to display or view DDL in the conversation — use base_tableDDL to display DDL without saving.
Arguments: database_name - Database name (e.g., 'MKTG_USR') table_name - Object name (e.g., 'SP_LOAD_VARIABLES_ARGUMENTARIO_IAG_FICHA_CLIENTE'). Accepts comma-separated values for bulk retrieval. object_type - Type of object: 'PROCEDURE', 'TABLE', 'VIEW' (default: 'PROCEDURE') output_dir - Directory where to save the DDL file (default: './ddls_extracted')
Returns: ResponseType: formatted response with file path, size, and metadata
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": {
"database_name": "<database_name>",
"table_name": "<table_name>"
},
"name": "base_saveDDL"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| output_dir | No | ./ddls_extracted | |
| table_name | Yes | ||
| object_type | No | PROCEDURE | |
| database_name | Yes |