penpot_distribute_shapes
Distributes three or more shapes on a page so gaps between adjacent shapes are equal, along a horizontal or vertical axis. Fixes outermost shapes and slides middle ones to create uniform spacing.
Instructions
Distribute three or more shapes so the gaps between adjacent shapes are equal, matching Penpot's own "distribute horizontal/vertical spacing" actions — instead of the caller computing even spacing itself. "axis" is "horizontal" (equalize left-to-right gaps) or "vertical" (top-to-bottom). The two outermost shapes stay put and the ones between them slide so every gap is identical; distributes on each shape's visible bounding box (selrect), accounting for differing shape sizes. Applied as a single update-file change-set; shapes already evenly spaced (and the two endpoints) are left untouched.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| axis | Yes | ||
| fileId | Yes | ||
| pageId | Yes | ||
| shapeIds | Yes | ||
| tokensPath | No | /app/tokens.json |