read_tilemap
Read Pyxel tilemap tile coordinates, usage, bounds, and source bank, with an optional rendered image or bbox region selection for layout inspection.
Instructions
Read Pyxel tile coordinates, usage, bounds, source bank, and optional rendered output. bbox=[x,y,w,h] selects a region in tiles. 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>",
"tilemap": "<tilemap>"
},
"name": "read_tilemap"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bbox | No | ||
| inline | No | ||
| script | Yes | Local .pyxres file or trusted Pyxel script path. | |
| tilemap | Yes | ||
| render_path | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | ||
| size | No | ||
| tiles | No | ||
| usage | No | ||
| errors | Yes | ||
| imgsrc | No | ||
| region | No | ||
| rendered | No | ||
| tilemap_index | No | ||
| sampled_region | No | ||
| zero_tile_used | No | ||
| zero_tile_nonempty | No |