delete_elements
Delete up to 100 map elements in one call and one undo step; the batch validates every ID first and can be restored with undo.
Instructions
Delete many elements in ONE call and ONE undo step. Reversible with undo().
Deleting one at a time costs a call and an undo slot each, and a large group
can push everything built before it out of the history's reach.
Before reaching for this on something you just created: a place_prefab,
scatter_objects, place_objects or build_room call is already a single undo
step, so undo() takes the whole thing back while it is the latest
operation. Use this for elements from different calls, or older work.
Up to 100 ids. Every id is resolved before anything is deleted: if one is
unknown the batch changes nothing and names it, rather than leaving you to
work out how far it got.
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": "delete_elements"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ids | Yes |