update_shape
Modify Penpot shapes: change position, size, colors, gradients, images, borders, shadows, blur, blend modes, text alignment, and visual effects.
Instructions
Update shape properties including position, size, colors, gradients, images, borders, shadows, blur, blend modes, text alignment, and visual effects
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | No | X position | |
| y | No | Y position | |
| r1 | No | Top-left corner radius | |
| r2 | No | Top-right corner radius | |
| r3 | No | Bottom-right corner radius | |
| r4 | No | Bottom-left corner radius | |
| name | No | Shape name | |
| width | No | Width | |
| fileId | Yes | File ID | |
| height | No | Height | |
| pageId | Yes | Page ID | |
| opacity | No | Overall opacity (0-1) | |
| shapeId | Yes | Shape ID | |
| fontSize | No | Font size for text shapes | |
| blendMode | No | Blend mode: "normal", "multiply", "screen", "overlay", etc. | |
| blurValue | No | Blur intensity in pixels | |
| fillColor | No | Fill color (HEX) | |
| fontStyle | No | Font style for text shapes: "normal", "italic" | |
| textAlign | No | Text alignment for text shapes: "left", "center", "right", "justify" | |
| fontFamily | No | Font family for text shapes | |
| fontWeight | No | Font weight for text shapes: "normal", "bold", "100"-"900" | |
| lineHeight | No | Line height multiplier for text shapes | |
| shadowBlur | No | Shadow blur radius in pixels | |
| fillImageId | No | Image media ID | |
| fillOpacity | No | Fill opacity (0-1) | |
| shadowColor | No | Shadow color (HEX) | |
| shadowStyle | No | Shadow style: "drop-shadow" or "inner-shadow" | |
| strokeColor | No | Stroke color (HEX) | |
| strokeWidth | No | Stroke width | |
| borderRadius | No | All corners radius (shorthand) | |
| gradientEndX | No | Gradient end X (0-1 normalized) | |
| gradientEndY | No | Gradient end Y (0-1 normalized) | |
| gradientType | No | Gradient type: "linear" or "radial" | |
| shadowSpread | No | Shadow spread in pixels | |
| fillImageName | No | Image name | |
| gradientStops | No | Gradient stops as JSON array | |
| letterSpacing | No | Letter spacing in pixels for text shapes | |
| shadowOffsetX | No | Shadow X offset in pixels | |
| shadowOffsetY | No | Shadow Y offset in pixels | |
| shadowOpacity | No | Shadow opacity (0-1) | |
| strokeOpacity | No | Stroke opacity (0-1) | |
| verticalAlign | No | Vertical alignment for text shapes: "top", "center", "bottom" | |
| fillImageMtype | No | Image MIME type | |
| fillImageWidth | No | Image width | |
| gradientStartX | No | Gradient start X (0-1 normalized) | |
| gradientStartY | No | Gradient start Y (0-1 normalized) | |
| textDecoration | No | Text decoration for text shapes: "none", "underline", "line-through" | |
| fillImageHeight | No | Image height | |
| fillImageKeepAspectRatio | No | Keep image aspect ratio |