draw_pixels
Set individual pixels to exact colors in Aseprite sprites without blending, with later entries overriding earlier ones and out-of-canvas pixels skipped.
Instructions
Set individual pixels to exact colours (no blending; a later entry wins).
Pixels outside the canvas are skipped and counted in skipped_outside. The cel grows to take in pixels outside it; content beyond the canvas is kept. Works on every colour mode: indexed sprites get the nearest palette entry, 'transparent' writes the transparent index. A background layer stays opaque: alpha is ignored there, so 'transparent' paints opaque black (the nearest palette colour on indexed sprites).
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>",
"pixels": "<pixels>"
},
"name": "draw_pixels"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Sprite file. Relative paths resolve against the server root. | |
| frame | No | 1-based frame number | |
| layer | No | Layer name or 'group/child' path; empty = the bottom-most normal layer | |
| pixels | Yes | Pixels as {x, y, color} | |
| create_cel | No | Add an empty cel when the layer has none in that frame |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||