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.
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": {
"frameId": "<frameId>",
"layoutGrids": "<layoutGrids>"
},
"name": "set_layout_grids"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| frameId | Yes | ||
| layoutGrids | Yes |