set_map_tile
Set a raw tile ID at specified X, Y coordinates on a map layer (0-5). Directly modify map data without autotile or passability checks.
Instructions
Set a single raw tile ID at (x, y) on a given z-layer (0-5). Note: tile IDs are raw engine integers; this is a low-level primitive without autotile/passability awareness.
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": {
"mapId": "<mapId>",
"x": "<x>",
"y": "<y>",
"layer": "<layer>",
"tileId": "<tileId>"
},
"name": "set_map_tile"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | Yes | X tile position | |
| y | Yes | Y tile position | |
| layer | Yes | Z-layer 0-5 (0-1 lower, 2-3 upper, 4 shadow, 5 region) | |
| mapId | Yes | The ID of the map | |
| dryRun | No | Preview only: return a diff of what would change without writing to disk. | |
| tileId | Yes | Raw tile ID |