draw_pixels
Set individual pixels with exact coordinates and hex colors for precise detail work in Aseprite, applying a whole batch as one undo step (up to 4096 pixels per call).
Instructions
Set individual pixels: pixels is a list of
{"x": int, "y": int, "color": "#rrggbb[aa]"}. The precision tool for
detail work — one undo step for the whole batch. Capped at 4096 pixels
per call. 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": {
"pixels": "<pixels>"
},
"name": "draw_pixels"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | No | ||
| pixels | Yes | ||
| preview | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |