generateCode
generateCodeGenerate source code from a database table by selecting a table and a template pack. Uses current database context to produce file contents based on the template.
Instructions
Generate source code from a database table using a template pack. Uses the current context (project/connection/schema) for database connection. Returns generated file contents based on the specified template.
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": {
"tableName": "<tableName>",
"templatePackId": "<templatePackId>"
},
"name": "generateCode"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tableName | Yes | Table name to generate code for | |
| templatePackId | Yes | Template pack ID to use for code generation | |
| schema | No | Database schema name. If omitted, uses current context schema. |