Preview drawing a tile shape
tiled_preview_shapeRasterize a deterministic geometric shape (line, rectangle, ellipse) into tile cells and return a mapEdit change set for preview.
Instructions
Rasterizes one deterministic geometric shape — a Bresenham line, a rectangle outline or fill, or a midpoint ellipse inscribed in its bounding rectangle — into exact tile cells and returns an ordinary mapEdit change set carrying the setTiles writes. Pure bounded computation: no randomness, no clipping (a shape that leaves the map fails closed), at most 10,000 cells, and a null tile erases along the shape. Every preview, revision-pin, and transaction rule applies unchanged.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"mapPath": "<mapPath>",
"layerId": "<layerId>",
"draw": "<draw>",
"tile": "<tile>",
"expectedMapRevision": "<expectedMapRevision>",
"expectedDependencyRevisions": "<expectedDependencyRevisions>"
},
"name": "tiled_preview_shape"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| draw | Yes | ||
| tile | Yes | ||
| layerId | Yes | ||
| mapPath | Yes | Canonical project-relative POSIX path; absolute paths and .. are forbidden | |
| expectedMapRevision | Yes | SHA-256 revision returned by a read or preview | |
| expectedDependencyRevisions | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |