set_item_spacing
Adjusts the gap between children in an auto-layout Figma frame by specifying the frame ID and a numeric spacing value.
Instructions
Set distance between children in an auto-layout frame
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>",
"itemSpacing": "<itemSpacing>"
},
"name": "set_item_spacing"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| nodeId | Yes | The ID of the frame to modify | |
| itemSpacing | Yes | Distance between children. Note: This value will be ignored if primaryAxisAlignItems is set to SPACE_BETWEEN. |