merge_walls
Join two matching open walls that share an endpoint into one wall in a single undoable step, preserving mounted doors and windows and their positions.
Instructions
Join two matching open walls sharing one endpoint, in ONE undo step.
The first ID survives; the second is removed. Mounted doors/windows retain
their IDs, appearance and positions. Returns id, removed_ids, portal_ids,
point_count. Supports automatic/manual wall runs and corners. Both walls
must be on the current level with matching styles. Rejects loops, cave walls,
T-junctions, overlaps and self-intersections before changing the map.
Each input wall may contain up to 512 points. Undo restores both original
walls and portal attachments; switch to their level before undo/redo.
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": {
"ids": "<ids>"
},
"name": "merge_walls"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ids | Yes |