pixel_replace_color
Replace every pixel of one exact color with another across the canvas for palette swaps and recoloring sprites.
Instructions
Replace every pixel of one exact color with another across the canvas.
Useful for palette swaps and recoloring sprites. Matching is exact RGBA. Returns JSON {"canvas", "find", "replace", "pixels_changed"}; plus a rendered image when preview=true. On failure returns "Error: ...".
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": {
"params": "<params>"
},
"name": "pixel_replace_color"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| params | Yes |