draw_shapes
Draw pixel-perfect lines, rectangles, ellipses, polygons, and shaded isometric boxes directly in Aseprite for precise pixel-art creation.
Instructions
Draw pixel-perfect line/polyline, rectangle, ellipse, filled polygon, or shaded isometric 3D box.
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": {
"file": "<file>",
"shape": "<shape>"
},
"name": "draw_shapes"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | No | For rect/ellipse (top-left) or iso_box (top-center apex). | |
| y | No | For rect/ellipse (top-left) or iso_box (top-center apex). | |
| x1 | No | For 2-point line. | |
| x2 | No | For 2-point line. | |
| y1 | No | For 2-point line. | |
| y2 | No | For 2-point line. | |
| file | Yes | ||
| color | No | Primary color (required for line/rect/ellipse/polygon; fallback for iso_box). | |
| frame | No | ||
| layer | No | ||
| shape | Yes | ||
| width | No | For rect/ellipse/iso_box. | |
| closed | No | Connect last point back to first point (for line shape). | |
| filled | No | Fill interior (default false for rect/ellipse, true for polygon). | |
| height | No | For rect/ellipse/iso_box (vertical wall height for iso_box). | |
| points | No | For line polyline or polygon (>=3 vertices): array of { x, y } vertices. | |
| preview | No | Return an inline PNG preview in the same Aseprite call (true or options object). | |
| topColor | No | For iso_box: top face color. | |
| leftColor | No | For iso_box: left face color. | |
| topHeight | No | For iso_box: diamond half-height (default width/4). | |
| rightColor | No | For iso_box: right face color. | |
| outlineColor | No | Optional outline color for polygon / iso_box. |