delete_brush
Deletes a specific brush from an entity in a .map file and saves the change, prompting TrenchBroom to reload the map. Solves removing unwanted geometry while preserving unsaved edits.
Instructions
Delete one brush from an entity. 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>",
"entity_index": "<entity_index>",
"brush_index": "<brush_index>"
},
"name": "delete_brush"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| map_path | Yes | Absolute path to the .map file | |
| brush_index | Yes | Brush index within the entity, from get_entity | |
| entity_index | Yes |