Select cells by predicate
tiled_selectSelect tile cells from a layer region by matching tile IDs, empty/non-empty status, or custom polygon shapes, and get the cell count, bounding box, and a coordinate sample.
Instructions
Evaluates one stateless selection predicate over a bounded tile-layer region — a tile set matched by tileset+localId (flip bits ignored), empty cells, or non-empty cells — and returns the selection as plain data: exact cell count, tight bounding box, and a bounded coordinate sample (at most 2,048 cells, with truncation disclosed). No selection id or server-side selection state exists; feed the result into region- or cell-based tools explicitly. Works on orthogonal, isometric, staggered, and hexagonal maps. Read-only.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| match | Yes | ||
| region | No | ||
| layerId | Yes | ||
| mapPath | Yes | Canonical project-relative POSIX path; absolute paths and .. are forbidden | |
| sampleLimit | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |