create_grid_style
Create reusable layout-grid styles for aligning content in Figma. Define GRID, ROWS, or COLUMNS patterns with counts, gutters, and alignment, then apply them to frames via apply_style_to_node.
Instructions
Create a reusable local layout-grid style for aligning content. Each grid pattern is GRID (uniform squares via sectionSize) or ROWS / COLUMNS (count + gutterSize + alignment). Apply it to frames with apply_style_to_node. Returns { ok, styleId, name }.
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": {
"name": "<name>",
"grids": "<grids>"
},
"name": "create_grid_style"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Style name, e.g. "Layout/8pt" | |
| grids | Yes | ||
| description | No |