delete_entity
Delete an entity and all its brushes from a Quake-format .map file. Protects worldspawn, writes the file, and checks for unsaved editor changes before reloading.
Instructions
Delete an entity (and all its brushes). Refuses to delete worldspawn. Writes the file; TrenchBroom-HL reloads it automatically, but asks first - and defaults to KEEPING the editor version - if the document has unsaved edits.
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": {
"map_path": "<map_path>",
"index": "<index>"
},
"name": "delete_entity"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| index | Yes | ||
| map_path | Yes | Absolute path to the .map file |