Get object DDL definition
hana_get_ddlRetrieve the CREATE statement (DDL) for SAP HANA objects like tables, views, procedures, functions, triggers, and sequences directly from SYS.OBJECT_DEFINITION.
Instructions
Retrieve the DDL (CREATE statement) for a TABLE, VIEW, PROCEDURE, FUNCTION, TRIGGER, or SEQUENCE from SYS.OBJECT_DEFINITION. Requires appropriate privileges.
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": "hana_get_ddl"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| object_name | Yes | Object name | |
| object_type | No | Optional filter: TABLE, VIEW, PROCEDURE, FUNCTION, TRIGGER, SEQUENCE | |
| schema_name | No | Schema name (defaults to HANA_SCHEMA) |