Get Layout
get_layoutExtract a Figma frame as a compact layout tree with flexbox properties, text fonts, hex colors, and pixel sizes to build a matching web page.
Instructions
One frame as a compact layout tree: auto layout as flexbox (direction, gap, padding, justify, align), text with its font, colours as hex, sizes in px. Build the page from this.
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_url": "<file_url>",
"frame_id": "<frame_id>"
},
"name": "get_layout"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_url | Yes | ||
| frame_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||