replace_color
Swap all occurrences of a source hex color with a target hex color across a cel or sprite in a single undo transaction.
Instructions
Replaces all occurrences of fromColor with toColor across the cel or sprite in a single 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": {
"fromColor": "<fromColor>",
"toColor": "<toColor>"
},
"name": "replace_color"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| toColor | Yes | Replacement color (hex) | |
| fromColor | Yes | Source color to replace (hex) | |
| layerName | No | ||
| tolerance | No | ||
| frameNumber | No | ||
| returnPreview | No |