get_layout_info
Get layout and spacing information from a Figma node, returning inferred flexbox properties such as direction, gap, padding, and alignment.
Instructions
Get layout and spacing information for a node. Returns inferred flexbox-like properties including direction, gap, padding, and alignment.
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": {
"filePath": "<filePath>",
"nodePath": "<nodePath>"
},
"name": "get_layout_info"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filePath | Yes | Path to the .fig file | |
| nodePath | Yes | Path to the node |