read_map_organisation
Reads visgroups, groups and the cordon from a .vmf and reports which objects belong to each, counting membership from the objects so ids declared nowhere are flagged, not dropped.
Instructions
Visgroups, groups and the cordon of a .vmf, with what belongs to each. None of it reaches the compiled map -- a visgroup hides a brush from the editor and not from vbsp -- which is why it was invisible here and why it matters at scale: on a map with two thousand brushes, 'the north tenement' has to be a name that lives in the file or every selection is a bounding box someone typed from memory. Membership is counted from the objects rather than from the declarations, so an id used by a brush and declared nowhere is reported -- Hammer drops those silently when it opens the file.
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": {
"path": "<path>"
},
"name": "read_map_organisation"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Path to the .vmf, absolute or relative to the repo root. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| groups | Yes | ||
| cordons | Yes | ||
| warnings | Yes | ||
| visgroups | Yes | ||
| cordonsActive | Yes | ||
| solidsInNoGroup | Yes | Solids carrying no groupid. This is the one group_solids moves. | |
| solidsInNoVisgroup | Yes | Solids carrying no visgroupid. A map with no visgroups reports all of them. |