lanhu_get_annotations
Extract precise design annotations including element sizes, positions, colors, and fonts from Lanhu designs to enable accurate design-to-code conversion.
Instructions
获取设计稿的标注数据(图层树),包含每个元素的尺寸、位置、颜色、字体等精确参数。
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_get_annotations"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| imageId | Yes | 设计稿 image_id | |
| projectId | No | 项目 UUID |