read_palette
Retrieves the active Pyxel palette and image-bank palette indices from a .pyxres file or trusted Pyxel script, so you can inspect color and index mappings.
Instructions
Read the active Pyxel palette and the palette indices used by image banks.
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": {
"script": "<script>"
},
"name": "read_palette"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| script | Yes | Local .pyxres file or trusted Pyxel script path. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | ||
| colors | No | ||
| errors | Yes | ||
| palette_size | No | ||
| used_indices | No | ||
| extended_palette | No |