draw_iso_box
Draw a shaded 2:1 isometric box at a pixel coordinate, returning its face polygons so you can attach recessed ports or details in Aseprite.
Instructions
Draw a 2:1 isometric box. The footprint diamond is centered at
(center_x, center_y) with the given half_width (full tile width =
2×half_width), rising height px. Top/left/right faces are auto-shaded
from color (#rrggbb, light from top-left) with stroke + highlight.
Returns the top/SE/SW face corner polygons so you can attach recessed ports
or details. One undo step. 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": {
"center_x": "<center_x>",
"center_y": "<center_y>",
"half_width": "<half_width>",
"height": "<height>",
"color": "<color>"
},
"name": "draw_iso_box"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | No | ||
| color | Yes | ||
| height | Yes | ||
| preview | No | ||
| center_x | Yes | ||
| center_y | Yes | ||
| half_width | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |