render_map
Render a map's tile layers to a flat PNG preview, return the file path, and use it to visually inspect maps you built for layout issues.
Instructions
Render a map's tile layers to a flat top-down PNG preview (outside the editor) and return the file path. Composites all 3 tile layers using the tileset graphic and autotiles. Use this to SEE a map you built/edited and self-check it. Layout preview only: no priority/overhead draw-order, fog/panorama/weather, autotile animation (frame 0), or event sprites. Reads project Graphics/ then falls back to the RTP (override base with RPGMAKER_RTP_PATH). Writes to Data/.mcp-preview/ by default; Read the returned path to view it.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mapId | Yes | Map ID to render | |
| scale | No | Integer nearest-neighbour upscale for legibility (default 1) | |
| layers | No | Which z-layers (0=ground,1=detail,2=overhead) to draw, in order. Default [0,1,2] | |
| region | No | Crop in tiles (default: whole map) | |
| outPath | No | Output PNG path (default Data/.mcp-preview/map<NNN>.png) | |
| drawGrid | No | Overlay a 32px tile grid (default false) | |
| drawEvents | No | Draw events (page-0 sprite/tile, else a marker) and return an event legend (default false) | |
| passability | No | Tint cells by passability: red=blocked, orange=partial. Approximate, uses the topmost tile (default false) |