draw
Renders shapes, pixel grids, and lines onto a specific Aseprite layer or multiple frames. Draw rects, circles, pixels, and clear areas to build or edit sprites.
Instructions
Draw on a layer (default: the topmost image layer) at frame, or on every frame
listed in frames. Ops are applied in order; colors are '#rrggbb' or '#rrggbbaa'.
{"op":"rows","x":0,"y":0,"rows":["..kk..",".kssk."],"key":{"k":"#1a1c2c","s":"#f4b41b"}} Pixel-art grid: one character per pixel, '.' or ' ' leaves the pixel unchanged. Best suited to sprites. {"op":"pixels","points":[[x,y],...],"color":"#ffffff"} or points [[x,y,"#rrggbb"],...] {"op":"rect","x":0,"y":0,"w":8,"h":8,"color":"#000000","fill":true} {"op":"line","x1":0,"y1":0,"x2":7,"y2":7,"color":"#000000"} {"op":"circle","cx":8,"cy":8,"r":4,"color":"#000000","fill":false} {"op":"clear"} or {"op":"clear","color":"#00000000"}
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": {
"path": "<path>",
"ops": "<ops>"
},
"name": "draw"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ops | Yes | ||
| path | Yes | ||
| frame | No | ||
| layer | No | ||
| frames | No |