set_auto_layout
Set auto-layout properties like mode, padding, alignment, and spacing for a Figma frame. Consolidates layout adjustments into one action.
Instructions
Set auto-layout properties for a frame in Figma. This unified tool replaces individual layout tools.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| nodeId | Yes | The ID of the frame to modify | |
| nodeName | Yes | Name of the node to modify | |
| layoutMode | No | Layout mode for the frame | |
| layoutWrap | No | Whether the auto-layout frame wraps its children | |
| paddingTop | No | Top padding value | |
| paddingRight | No | Right padding value | |
| paddingBottom | No | Bottom padding value | |
| paddingLeft | No | Left padding value | |
| primaryAxisAlignItems | No | Primary axis alignment (MIN/MAX = left/right in horizontal, top/bottom in vertical). Note: When set to SPACE_BETWEEN, itemSpacing will be ignored as children will be evenly spaced. | |
| counterAxisAlignItems | No | Counter axis alignment (MIN/MAX = top/bottom in horizontal, left/right in vertical) | |
| layoutSizingHorizontal | No | Horizontal sizing mode (HUG for frames/text only, FILL for auto-layout children only) | |
| layoutSizingVertical | No | Vertical sizing mode (HUG for frames/text only, FILL for auto-layout children only) | |
| itemSpacing | No | Distance between children. Note: This value will be ignored if primaryAxisAlignItems is set to SPACE_BETWEEN. | |
| counterAxisSpacing | No | Distance between wrapped rows/columns. Only works when layoutWrap is set to WRAP. |