swap_palette_indices
Swap two palette colors and all pixel references to them, keeping the image unchanged.
Instructions
Swap two palette entries and all pixel references to them. The image looks unchanged.
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": {
"doc_id": "<doc_id>",
"a": "<a>",
"b": "<b>"
},
"name": "swap_palette_indices"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| a | Yes | Palette index | |
| b | Yes | ||
| doc_id | Yes | Document id |