codegen_build_context
Prepares complete template context for code generation from a database table as the first step in the atomic workflow, returning a context dict that can be inspected or modified before rendering.
Instructions
构建代码生成所需的完整模板上下文(不写盘,不渲染)。这是原子代码生成工作流的第一步,后续 codegen_render_* 工具的输入。返回的 context dict 可被 LLM 检视或修改,再传给后续工具。
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": {
"connection_id": "<connection_id>",
"table_name": "<table_name>"
},
"name": "codegen_build_context"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| connection_id | Yes | Database connection ID from db_connect_test | |
| table_name | Yes | Table name to build context for | |
| database | No | Database name (optional, uses connection default) | |
| template_category | No | MybatisPlus-Mixed | |
| author | No | ZXP | |
| package_name | No | com.example.generated | |
| include_swagger | No | ||
| include_lombok | No | ||
| include_mapstruct | No | ||
| project_path | No | Optional target Spring Boot project path |