shape_add
Add geometric shapes like rectangles, circles, triangles, stars, and hearts to a canvas with customizable fills, strokes, corner radius, and opacity for design layouts.
Instructions
Adds a geometric shape to the canvas (rect, rrect, circle, triangle, star, heart). Supports fills, strokes, corner radius, and opacity.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | No | X center position | |
| y | No | Y center position | |
| width | No | Width in pixels | |
| height | No | Height in pixels | |
| opacity | No | Opacity from 0 to 1 | |
| fillColor | No | Hex fill color | #6C5CFF |
| shapeType | Yes | rect | |
| strokeColor | No | Hex stroke border color | |
| strokeWidth | No | Stroke border width in pixels | |
| cornerRadius | No | Corner roundness in pixels (rx/ry) |