generate_grid
Create a grid of cloned items or rectangles inside a parent Figma node, with custom rows, columns, spacing, and naming.
Instructions
Generate a grid of items inside a parent. Clones itemNodeId if given, otherwise creates rectangles of itemWidth x itemHeight. Use {i} in name for the running index.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "generate_grid"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | ||
| rows | No | ||
| columns | No | ||
| spacingX | No | ||
| spacingY | No | ||
| itemWidth | No | ||
| itemHeight | No | ||
| itemNodeId | No | ||
| parentNodeId | No |