group_nodes
Wrap sibling nodes that share a parent in a group or transparent non-clipping frame sized to their bounds, preserving absolute positions and z-order and returning the new container with its children.
Instructions
Wrap nodes that share the same parent in a group (or, with asFrame, a transparent non-clipping frame sized to their bounds). Absolute positions and z-order are preserved. Returns the new group/frame with its children.
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": {
"nodeIds": "<nodeIds>"
},
"name": "group_nodes"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | No | Target file (fileKey, id or name). Defaults to the most recently active file. | |
| name | No | ||
| asFrame | No | Wrap in a frame instead of a group | |
| nodeIds | Yes | Figma node ids, e.g. ['12:34'] |