get_html_replica_spec
Extract a detailed spec from Figma files with computed typography, colors, gradients, and asset manifests to build HTML replicas.
Instructions
Build a replica-optimized spec from a Figma file/node: sections/elements with absolute rects, computed typography (family/style/size/letter-spacing/line-height/text-case), hex+alpha colors, gradient data, and an asset manifest (icons→svg, image fills→urls, logo hints). Output schema matches verify_html_parity input.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | Full figma.com URL (design/file/proto). node-id query param is honored. | |
| depth | No | ||
| inline | No | Return the full spec inline (can be large). Default: return summary + path. | |
| nodeId | No | Node id, "1:2" or "1-2" form. Overrides node-id in url. | |
| fileKey | No | Figma file key (from the file URL). Provide either fileKey or url. | |
| outPath | No | Where to write the spec JSON (default ~/.figmingo/replica/<fileKey>-<node>.spec.json). | |
| iconPattern | No | Regex for icon asset hints on node names. | |
| logoPattern | No | Regex for logo asset hints (default /logo/i on node names). | |
| sectionsMode | No | auto = child containers become sections; self = whole node is one section. | auto |
| includeAssets | No | ||
| downloadAssets | No | Download asset bytes and add localPath to manifest entries. |