penpot_group_shapes
Group multiple sibling shapes into a new group while preserving their canvas positions and z-order. Reversible with ungroup.
Instructions
Group one or more existing sibling shapes into a new group, matching Penpot's own Ctrl+G behavior. All supplied shapeIds must share the same parent on the page. The new group is inserted into the parent at the z-order position of the topmost selected shape; the grouped shapes become the group's children and keep their existing absolute canvas positions. Returns the new groupId and the parent's updated shapes order. Use penpot_ungroup_shapes to reverse this operation.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Group | |
| fileId | Yes | ||
| pageId | Yes | ||
| groupId | No | ||
| shapeIds | Yes |