get_map_tiles
Fetch a rectangular region of tile IDs from a map, either for a single layer or all three, so you can inspect the map's grid data.
Instructions
Read a map's tile ids as a 2D grid (rows top-to-bottom). Returns one layer if layer is given, else all three. Tile id 0 = empty, 48..383 = autotiles, >=384 = regular tiles. Use region to crop and avoid large payloads.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| layer | No | Layer 0=ground, 1=detail, 2=overhead (omit for all) | |
| mapId | Yes | ||
| region | No | Crop in tiles (default whole map) |