get_tilemap_info
Describe a tilemap layer's grid and read the tile indices placed in a frame, including flipped cells; use an optional rectangle to limit the region.
Instructions
Describe a tilemap layer and read the tile indices placed in a frame.
The grid is the layer's own tileset grid: tile_size, origin, and the columns and rows that cover the canvas. tile_count includes tile 0, the empty tile. cel gives the frame's tilemap cel in cells (null without one). tiles holds one list of indices per row of the region (0 where nothing is placed); flags lists flipped cells. At most 4096 cells per call.
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>",
"layer": "<layer>"
},
"name": "get_tilemap_info"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Sprite file. Relative paths resolve against the server root. | |
| rect | No | Cells to read, in tiles: x=col, y=row, w and h; default whole grid | |
| frame | No | 1-based frame number | |
| layer | Yes | Tilemap layer name or 'group/child' path |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||