read_image
Reads palette-index pixels from a Pyxel image-bank region and optionally renders them to PNG or returns inline image content for visual verification.
Instructions
Read palette-index pixels from a Pyxel image-bank region and optionally render it to PNG; inline=true returns the render as image content and makes render_path optional.
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>",
"image": "<image>"
},
"name": "read_image"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| h | No | ||
| w | No | ||
| x | No | ||
| y | No | ||
| image | Yes | ||
| inline | No | ||
| script | Yes | Local .pyxres file or trusted Pyxel script path. | |
| render_path | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | ||
| errors | Yes | ||
| pixels | No | ||
| region | No | ||
| rendered | No | ||
| bank_size | No | ||
| color_count | No | ||
| image_index | No |