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.
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": {
"shapeType": "<shapeType>"
},
"name": "shape_add"
}
}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) |