set_pixel
Set a single pixel on a canvas at specified (x, y) coordinates using a hex color or palette index, enabling precise pixel-level editing in retro pixel art.
Instructions
Sets a single pixel at (x, y) with a hex color or palette index.
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_id": "<canvas_id>",
"x": "<x>",
"y": "<y>",
"color": "<color>"
},
"name": "set_pixel"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | Yes | X coordinate (0-indexed) | |
| y | Yes | Y coordinate (0-indexed) | |
| color | Yes | Hex color string (e.g. '#ff0055') or palette index (e.g. 5) | |
| canvas_id | Yes | Target canvas ID |