generate_model
Creates 3D city building models from natural-language prompts or by applying instructions to existing CGA rules, returning CGA source, model stats, GLB files, and signed download links.
Instructions
自然语言一句话 → 直接生成三维模型(NL2CGA + 引擎解析一键串联)。
两种模式二选一:
text:自然语言描述,如「生成一栋 12 层现代玻璃幕墙办公楼」。
base_cga + instruction:回传既有 CGA + 修改指令,二次生成再出模型。
Args:(其余参数同 parse_cga)
Returns: cga_source(供后续 cga_edit 回传)、模型统计、glb 本地路径、 签名下载地址、sha256、usage、warnings。
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "generate_model"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| seed | No | ||
| text | No | ||
| base_cga | No | ||
| timeout_s | No | ||
| attributes | No | ||
| output_dir | No | ||
| instruction | No | ||
| download_glb | No | ||
| initial_shape | No |