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.
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 |