Paint: Write single pixels
paint_pixelsWrite exact pixel colors to a named canvas layer without blending, using coordinate or rectangle lists for pixel art and small fixes.
Instructions
Exact pixel writes (no blending): pixels=[{x,y,color}, {x,y,width,height,color}, or [x,y,0xRRGGBB]]. Use for pixel art and small fixes.
Target the canvas by name (created with paint_canvas) and optionally a layer index. Layers, filters and undo work the same for every drawing tool.
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": {
"canvas": "<canvas>",
"pixels": "<pixels>"
},
"name": "paint_pixels"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| layer | No | Target layer index; defaults to the active layer (see paint_canvas). | |
| canvas | Yes | Canvas name. Letters, digits, space, dot, dash, plus; the .png/.paint suffix may be included or omitted. | |
| pixels | Yes | ||
| preview | No | Image reply: auto/thumb = downscaled picture back into the result, full = unpixelated, none = text only | |
| preview_size | No | Longest edge of the returned thumbnail |