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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"file_key": "<file_key>",
"node_id": "<node_id>",
"access_token": "<access_token>"
},
"name": "inspect_layout"
}
}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 |