inspect_layout
Inspect a Figma frame to extract layout hierarchy, positioning, spacing, constraints, and accessibility warnings as a versioned JSON envelope for stable downstream tooling.
Instructions
Inspects a Figma frame and returns deterministic layout data: node hierarchy, auto-layout vs absolute positioning, spacing, padding, constraints, and accessibility warnings (touch targets, font sizes). Output is a versioned JSON envelope — stable and predictable for downstream tooling.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| node_id | Yes | The node ID of the frame to inspect | |
| file_key | Yes | The Figma file key (from the file URL) | |
| framework | No | ||
| max_depth | No | ||
| access_token | Yes | Your Figma personal access token |