lanhu_generate_code
Generate frontend code (Vue 3 or HTML) from Lanhu DDS semantic design data by specifying an image ID.
Instructions
基于蓝湖 DDS 语义化数据生成前端代码。支持 Vue 3 SFC (.vue) 和 HTML 输出。
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": {
"imageId": "<imageId>"
},
"name": "lanhu_generate_code"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| format | No | 输出格式:vue 或 html | vue |
| imageId | Yes | 设计稿 image_id | |
| outputPath | No | 输出目录(不传则返回代码内容) |