lanhu_design
Analyze Lanhu design projects by providing a project URL. Choose mode: list designs, analyze with HTML/CSS/tokens, extract slices, or get tokens only. Supports design selection by name, index, or 'all'. Use with detailDetach URLs.
Instructions
Unified Lanhu design tool. Supports listing, analyzing, extracting tokens, and getting slices.
Modes:
list: List all designs in the project
analyze: Full design analysis with HTML+CSS, tokens, layout (default)
slices: Extract slice/asset info for download
tokens: Extract design tokens only (fonts, colors, shadows, etc.)
For detailDetach URLs (contains image_id), pass design_names='all'.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | Lanhu project URL. Supports stage and detailDetach formats. | |
| mode | No | Operation mode. Default: analyze. | analyze |
| design_names | No | Design name(s), index, or 'all'. Required for analyze/slices/tokens. Number = index from list, exact string = match by name or id. | |
| include | No | Content to include in analyze mode. Default: ['html', 'tokens']. Options: html, image (base64), tokens, layout, layers, slices. |