Render a native tile-layer map preview
tiled_render_previewRender a preview of a bounded TMJ map region with optional overlays for highlights, object debug, and grid. Supports layer-specific and coordinate debugging.
Instructions
Renders a bounded orthogonal TMJ region without invoking TmxRasterizer; infinite chunked maps require an explicit absolute-coordinate region (negatives allowed, cells outside chunks are empty). The native v1 profile supports static external and embedded (inline) atlas tile layers — embedded images resolve relative to the map file and their source entry carries {embedded: {sourceIndex}} pinned by the map revision; tile objects backed by embedded tilesets fail closed — plus fixed-style absolute tile-rectangle highlights and explicit basic-object geometry debugging. The v2 object debug profile supports rectangles, points, ellipses, Tiled 1.12 capsules, polygons, polylines, and text boxes; it ignores object and layer visibility/opacity and does not render text glyphs. Every highlight must intersect the effective tileRegion; partial overlap is clipped and reported.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scale | No | ||
| region | No | ||
| mapPath | Yes | Canonical project-relative POSIX path; absolute paths and .. are forbidden | |
| layerIds | No | ||
| overlays | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |