change_color_mode
Convert a sprite to RGB, grayscale, or indexed color, adding optional dithering to control palette reduction.
Instructions
Converts the sprite to RGB, grayscale or indexed, with optional dithering.
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": {
"mode": "<mode>"
},
"name": "change_color_mode"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | Yes | ||
| save | No | Batch mode: write changes back to the sprite file (default true) | |
| rgbmap | No | ||
| sprite | No | File path, open tab title, or sprite id. Defaults to the active sprite (live). Batch mode needs a file path. | |
| toGray | No | ||
| backend | No | auto (default): live Aseprite if connected, else headless batch | |
| dithering | No | ||
| fitCriteria | No | ||
| ditheringFactor | No | ||
| ditheringMatrix | No | e.g. 'bayer2x2', 'bayer4x4', 'bayer8x8' |