Figma frame spec
figma_frame_specRead the design details of a Figma frame as compact JSON: for each visible node its id, name, type, bounds (x/y/w/h relative to the frame, in design units), text, font (family/size/weight/lineHeight), solid fills and strokes as #RRGGBB, corner radius, auto-layout mode/padding/spacing, and applied style names. Use it to check copy, colours, fonts and spacing against what the device actually shows (page source / element bounds). Pass the Figma link including node-id, or file_key + node_id. max_depth (default 6) and max_nodes (default 400) bound the output; "truncated": true means more existed. Uses the calling user's stored Figma token. TIP: design units are points/dp at 1x — scale by the device pixel ratio before comparing bounds.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | Figma link to the frame, including node-id. | |
| node_id | No | Node id, "12:34" or "12-34". Needed with file_key. | |
| file_key | No | Figma file key, when not passing url. | |
| max_depth | No | Tree depth below the frame (default 6). | |
| max_nodes | No | Max nodes returned (default 400). |