draw_pixels
Paint individual pixels on a 2D layer in one undoable operation by setting 0-based x/y coordinates to hex colors or transparent to erase.
Instructions
Paint individual pixels on a 2D layer in a single undoable operation. Coordinates are 0-based from top-left (x: 0..width-1, y: 0..height-1).
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 |
|---|---|---|---|
| pixels | Yes | List of pixels to set. | |
| layerIndex | No | Target 2D layer index (defaults to active layer). |