codegen_render_controller
Renders a Spring REST Controller with @RestController and Bean Validation. Requires a template context from codegen_build_context.
Instructions
渲染 REST Controller(@RestController + Bean Validation)。需要先调用 codegen_build_context 获取 context。
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": {
"context": "<context>"
},
"name": "codegen_render_controller"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| context | Yes | 从 codegen_build_context 返回的完整模板上下文 dict。包含 className/columns/primaryKeyType/templateCategory 等字段。LLM 应原样传递,可在传入前修改字段以重新渲染。 |