fill_rect
Draw a solid-color rectangle on a pixel art canvas by specifying position, dimensions, and color. Use it to add shapes or backgrounds programmatically.
Instructions
Fill a rectangle with a solid color.
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": {
"x": "<x>",
"y": "<y>",
"width": "<width>",
"height": "<height>",
"color": "<color>"
},
"name": "fill_rect"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | Yes | Top-left X | |
| y | Yes | Top-left Y | |
| color | Yes | Fill color | |
| width | Yes | Rectangle width | |
| canvas | No | Canvas name | default |
| height | Yes | Rectangle height |