rect
Draw an outlined or filled rectangle on a pixel art canvas, specifying position, size, and color.
Instructions
Draw a rectangle on a canvas (outline or filled).
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>",
"x": "<x>",
"y": "<y>",
"w": "<w>",
"h": "<h>",
"color": "<color>"
},
"name": "rect"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| h | Yes | Height | |
| w | Yes | Width | |
| x | Yes | Top-left X | |
| y | Yes | Top-left Y | |
| color | Yes | Hex char 0-F or "." for transparent | |
| filled | No | Fill the rectangle (default: false = outline only) | |
| canvas_id | Yes | Canvas ID |