delete_element
Remove any battle map element by its ID and reverse the change with undo, restoring the element exactly where it was with its ID intact.
Instructions
Delete any element from the map by id. Reversible with undo().
The element is detached rather than destroyed, so undo() puts it back
exactly where it was, with its id intact.
To take back what a place_prefab, scatter_objects or build_room just made,
call undo() once instead of deleting its pieces: each of those is ONE undo
step, but only while it is still the latest undoable operation. Anything
done since has to be undone first, which may not be what you want.
It leaves the map on the NEXT frame, so a get_status immediately after may
still count it. Read the count back a moment later, not in the same breath.
Terrain, water and floor shapes are layers, not elements: they have no id
and cannot be deleted. Paint over them, or draw them again with invert.
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": {
"id": "<id>"
},
"name": "delete_element"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes |