set_layout_grids
Apply row, column, or grid layout guides to a Figma frame, with alignment, gutter, count, and color options. Invalid pattern keys and conflicting settings are dropped automatically.
Instructions
Set layout grids (layout guides) on a frame. Each grid is either {pattern:'ROWS'|'COLUMNS', alignment:'MIN'|'MAX'|'CENTER'|'STRETCH', gutterSize, count, sectionSize?, offset?} or {pattern:'GRID', sectionSize}, plus optional visible and color. Figma rejects sectionSize when alignment is STRETCH and offset when alignment is CENTER; the bridge drops those rather than failing, and strips any key the pattern does not declare.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| frameId | Yes | ||
| layoutGrids | Yes |