Group / component / boolean ops
restructure_nodesRestructures Figma nodes by grouping, ungrouping, wrapping in frames, converting to components or variants, placing instances, running boolean operations, flattening, and detaching.
Instructions
Structural operations on nodes: group, ungroup, wrap_in_frame (frame around nodes, keeps positions; pass props such as layoutMode/padding), to_component (each node becomes a component), combine_as_variants (components → component set), create_instance (instance of a component placed next to it), flatten, union, subtract, intersect, exclude, detach_instance. Optional name/props are applied to the resulting node.
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": {
"action": "<action>",
"ids": "<ids>"
},
"name": "restructure_nodes"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ids | Yes | ||
| name | No | ||
| props | No | ||
| action | Yes | ||
| parentId | No | Parent for the result. Default: parent of the first node |