Paint tiles
set_tilesWrites tile IDs onto one RPG Maker MZ map, either at explicit cells or across a rectangle fill, while assigning each tile to its correct layer unless overridden.
Instructions
Write tile ids on one map. Pass explicit cells, or a rectangle to fill. Layer 0-3 are tile layers, 4 holds shadow bits 0-15, 5 holds region ids. MZ puts A1/A2 ground on layer 1, A3 on 2, A4 upper walls on 3 and A5/B/C/D/E on 0 — leave layer out and each tile goes to the layer its own slot belongs to, which is the difference between a forest and a field of trees buried under the grass. Pass it to override, and painting a tile on a layer it does not belong to still renders, only at the wrong depth, so the reply says so.
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>"
},
"name": "set_tiles"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rect | No | Fill a rectangle with one tile id; autotile ids keep their shape ids, so a filled area becomes one contiguous autotile region | |
| cells | No | ||
| mapId | Yes |