Hug, fill or fix a size
figma_set_layout_sizingSet a Figma node's width and height behavior inside an auto-layout frame using HUG (shrink to contents), FILL (stretch to parent), or FIXED (keep size).
Instructions
How a child behaves inside an auto-layout frame: HUG shrinks to its contents, FILL stretches to the parent, FIXED keeps its size. This, not figma_set_bounds, is how widths are set inside auto layout.
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": {
"nodeId": "<nodeId>"
},
"name": "figma_set_layout_sizing"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| nodeId | Yes | Figma node id, like "21:10314". Omit to use whatever is selected on the canvas. | |
| vertical | No | ||
| horizontal | No |