Recolor
goxel_recolor_regionRecolor existing voxels in a chosen region or matching a source color, such as changing gray rims to black. Set the target color and optionally limit by layer, region, or tolerance.
Instructions
Change the color of existing voxels in a region and/or of a given color (for example: gray rims -> black).
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": {
"to_color": "<to_color>"
},
"name": "goxel_recolor_region"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| layer | No | Layer name or id (default: the active layer) | |
| region | No | Default: the whole layer | |
| to_color | Yes | Color: "#rrggbb", "#rrggbbaa", [r,g,b] / [r,g,b,a] (0-255) or a name (black, white, red, darkred, green, darkgreen, blue, darkblue, lightblue, yellow, orange, amber, purple, pink, brown, gray, grey, darkgray, darkgrey, lightgray, lightgrey, silver, chrome, gold, cyan, magenta, glass, tinted) | |
| tolerance | No | ||
| all_layers | No | ||
| from_color | No | Only recolor voxels of this color |