read_map_extents
Reads a compiled .bsp map's real extents from its world model, returning bounding box in Hammer units and metres, longest horizontal span, and ground area for accurate level sizing.
Instructions
Real size of a compiled map, from the world model in lump 14. Returns the bounding box in Hammer units and in metres, the longest horizontal span and the ground area. Use this rather than entity origins: those say where things were placed, not how far the world goes. One Hammer unit is one inch (0.0254 m). Instant on any map size.
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_extents"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Path to the .bsp, absolute or relative to the repo root. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| maxs | Yes | ||
| mins | Yes | ||
| path | Yes | ||
| sizeUnits | Yes | ||
| spanUnits | Yes | ||
| modelCount | Yes | Model 0 is the world; the rest are brush entities. | |
| sizeMetres | Yes | ||
| spanMetres | Yes | ||
| metresPerUnit | Yes | ||
| areaSquareMetres | Yes |