draw_rect
Draw rectangles on the canvas with specified position, width, height, color, and optional fill.
Instructions
Draw a rectangle (outline or filled) on the canvas.
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": {
"color": "<color>"
},
"name": "draw_rect"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | No | ||
| y | No | ||
| color | Yes | {r,g,b,a} | |
| frame | No | ||
| layer | No | ||
| width | No | ||
| filled | No | Fill the rectangle (default: false = outline) | |
| height | No |