pixel_draw_rect
Draws a filled or outlined rectangle on a pixel art canvas. Set position, dimensions, color, and fill style; 'transparent' erases the region.
Instructions
Draw a filled or outlined rectangle on a canvas.
(x, y) is the top-left corner; width/height are in pixels. Drawing 'transparent' erases the region. Returns JSON {"canvas", "rect", "color", "filled"}; plus a rendered image when preview=true. On failure returns "Error: ...".
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| params | Yes |