fix_spacing
Corrects spacing values in a Figma node by snapping them to the nearest 8px grid, ensuring consistent alignment across the design.
Instructions
Auto-fix all spacing values to nearest 8px grid value.
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": {
"nodeId": "<nodeId>"
},
"name": "fix_spacing"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| grid | No | Grid size (default: 8) | |
| nodeId | Yes | Root node to fix |