draw_shape
Draws pixel-art geometric shapes (line, rectangle, circle) on a canvas using specified coordinates, color, and optional fill.
Instructions
Draws a pixel-art rasterized geometric primitive (line, rect, circle).
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": {
"canvas_id": "<canvas_id>",
"shape": "<shape>",
"x1": "<x1>",
"y1": "<y1>",
"color": "<color>"
},
"name": "draw_shape"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x1 | Yes | Starting X / Center X / Rect X | |
| x2 | No | Ending X / Rect Width / Circle Radius | |
| y1 | Yes | Starting Y / Center Y / Rect Y | |
| y2 | No | Ending Y / Rect Height | |
| color | Yes | Hex color or palette index | |
| shape | Yes | Shape type to draw | |
| filled | No | Whether the shape is filled (default: false) | |
| canvas_id | Yes | Target canvas ID |