draw_rectangle
Draw filled or outlined rectangles on the active Aseprite layer and frame with a hex color, optionally targeting a file and returning a before/after preview.
Instructions
Draw a rectangle on the active layer + frame. color is #rrggbb or
#rrggbbaa. fill false draws only the outline. One undo step (live).
Headless: pass file.
preview true also returns a before/after picture of the canvas with the changed-pixel count and bbox.
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": "draw_rectangle"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | Yes | ||
| y | Yes | ||
| file | No | ||
| fill | No | ||
| color | Yes | ||
| width | Yes | ||
| height | Yes | ||
| preview | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |