query_map
Inspect RPG Maker maps: view map tree, full tile data, events, validate tiles, or render as ASCII grid with event markers.
Instructions
Read-only: inspect maps. view selects what you get: "infos" lists the map tree from MapInfos.json (ids, names, folder parentIds — no mapId needed); "full" returns one complete MapNNN.json (dimensions, 6-layer tile data, events — can be large); "events" lists a map's events (with query, filters by name, case-insensitive); "event" returns one event by eventId (null if absent); "validate" lints a map (invalid tile IDs per layer, missing page terminators, transfers to map 0, Self Switch OFF where ON was likely meant) returning {issueCount, issues[]}; "ascii" renders the map as a character grid with event markers and a legend — the cheapest way to "see" a layout and pick coordinates, entirely offline. Fails with an error if the map file does not exist. For player-visible images use analyze_image instead.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| view | Yes | What to read; see the tool description for each view | |
| mapId | No | Map ID (required for every view except "infos"); map 1 is Map001.json | |
| eventId | No | Event ID within the map (required for view "event") | |
| query | No | view "events" only: case-insensitive substring filter on event names | |
| layer | No | view "ascii" only: tile layer to draw, 0=ground (default) or 2=upper decorations | |
| showEvents | No | view "ascii" only: overlay event markers (default true) | |
| showRegions | No | view "ascii" only: also return the region-ID layer as a second grid (default false) |