get_palette
Reads a sprite's color palette and returns its entries as hex values. Reports the 1-based transparent index for indexed sprites.
Instructions
The sprite's palette as '#rrggbb' colours ('#rrggbbaa' when not opaque).
Indexed sprites also report transparent_index, the 1-based entry that is transparent on normal layers.
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": {
"path": "<path>"
},
"name": "get_palette"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Sprite file. Relative paths resolve against the server root. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||