read_vmf_solids
Rebuilds every .vmf brush from its planes to verify it forms a closed convex volume, reporting corner count, bounds, volume and errors such as reversed sides or degenerate planes.
Instructions
Rebuilds every brush of a .vmf from its planes and checks that it is a closed convex volume. Reports each solid's corner count, bounding box and volume, plus what is wrong with it: a side wound the wrong way (the planes then enclose nothing), three collinear points that define no plane, a side that bounds no face, a corner outside the world, a texture axis pointing along its own face normal so the texture stretches without bound. It runs the opposite way round from anything that writes a brush -- planes to volume rather than volume to planes -- which is what makes it usable as an independent check rather than a restatement.
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_vmf_solids"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| grid | No | Grid size corners are expected to land on. 1 (default) means integers; 0 disables. | |
| path | Yes | Path to the .vmf, absolute or relative to the repo root. | |
| limit | No | Maximum solids to return. Default 50. | |
| include | No | Which solids to return. 'invalid' (default) returns only those with an error. | |
| vertices | No | Include every corner's coordinates. Off by default: it is a lot of numbers. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| solids | Yes | ||
| returned | Yes | ||
| truncated | Yes | ||
| solidCount | Yes | ||
| validCount | Yes | ||
| findingCounts | Yes | ||
| gridHistogram | Yes | Solids per grid size, coarsest first; key '0' means not on whole units. |