set_map_tiles
Stamp a 2D block of tile IDs onto a map layer at a given position, with 0 clearing cells and out-of-bounds tiles skipped.
Instructions
Stamp a 2D block of tile ids into a layer with its top-left at (x, y). grid is rows of ids (0 clears a cell). Cells outside the map are skipped. Preview with render_map.
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>",
"layer": "<layer>",
"x": "<x>",
"y": "<y>",
"grid": "<grid>"
},
"name": "set_map_tiles"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | Yes | Left tile of the block | |
| y | Yes | Top tile of the block | |
| grid | Yes | 2D array of tile ids (rows) | |
| layer | Yes | 0=ground, 1=detail, 2=overhead | |
| mapId | Yes |