Extract a design spec from Figma
designfit_extractConvert a Figma frame into the design spec designfit_validate expects. Provide a Figma link or fileKey plus nodeId, or paste raw node data; returns design, componentMap, and viewport.
Instructions
Turn a Figma frame into the design spec designfit_validate expects. Give it a Figma link (https://www.figma.com/design//...?node-id=...), or fileKey + nodeId, and it fetches the node via Figma's REST API using the FIGMA_TOKEN env var; or paste the raw GET /v1/files/:key/nodes response as nodes and nothing is fetched. Returns { design, componentMap, viewport }: add url and call designfit_validate. Deterministic. Hidden nodes are skipped; a frame made only of vectors is one leaf (an icon). maxDepth limits how deep to go.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | ||
| nodes | No | ||
| nodeId | No | ||
| fileKey | No | ||
| maxDepth | No |