set_pixel
Paint a single pixel at specified x,y coordinates with a hex color, optionally targeting a layer or frame, all within an atomic undo transaction.
Instructions
Paints a single pixel at (x, y) with the specified color within an atomic undo transaction.
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": {
"x": "<x>",
"y": "<y>",
"color": "<color>"
},
"name": "set_pixel"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | Yes | X coordinate in canvas space | |
| y | Yes | Y coordinate in canvas space | |
| color | Yes | Hex color (#RRGGBBAA or #RRGGBB) | |
| layerName | No | Optional target layer name | |
| layerIndex | No | Optional target layer index | |
| frameNumber | No | Target frame number (1-indexed) | |
| returnPreview | No | When true, returns updated preview image |