set_auto_layout
Configure auto-layout properties on Figma frames to set direction, spacing, padding, and alignment for structured component layouts.
Instructions
Set or update auto-layout (flex) properties on an existing frame.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| counterAxisAlignItems | No | Cross-axis alignment: MIN, CENTER, MAX, or BASELINE | |
| counterAxisSizingMode | No | Cross-axis sizing: FIXED or AUTO (hug) | |
| counterAxisSpacing | No | Gap between wrapped rows/columns (only when layoutWrap is WRAP) | |
| itemSpacing | No | Gap between children | |
| layoutMode | No | Auto-layout direction: HORIZONTAL, VERTICAL, or NONE | |
| layoutWrap | No | Wrap behaviour: NO_WRAP or WRAP | |
| nodeId | Yes | Frame node ID in colon format e.g. '4029:12345' | |
| paddingBottom | No | Bottom padding | |
| paddingLeft | No | Left padding | |
| paddingRight | No | Right padding | |
| paddingTop | No | Top padding | |
| primaryAxisAlignItems | No | Main-axis alignment: MIN, CENTER, MAX, or SPACE_BETWEEN | |
| primaryAxisSizingMode | No | Main-axis sizing: FIXED or AUTO (hug) |