read_model_info
Reads a Source .mdl's bounds, skins, sequences and materials so you can check where a prop's origin sits before placing it, avoiding props that sink into the floor.
Instructions
Bounds, skins, sequences and materials of one .mdl -- what Hammer's model viewer shows before you place a prop. The bounds are the reason this exists: a model's origin is wherever the artist put it, so a prop placed at floor height sinks by however far its origin sits above its lowest point, and nothing downstream reports that. A barrel measured here is 52 units tall with its origin at the centre, which means 26 units underground if it is placed on the floor's own z. Needs the Python sidecar; see health.
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": {
"model": "<model>"
},
"name": "read_model_info"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| game | No | Game profile id. This fork supports only 'l4d2', which is also the default; any other id is refused rather than answered about the wrong game. | |
| model | Yes | Model path. The models/ prefix and the .mdl suffix are added if missing. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| game | Yes | ||
| maxs | No | ||
| mins | No | ||
| note | No | ||
| size | No | ||
| found | Yes | ||
| model | Yes | ||
| mounted | Yes | ||
| refused | No | ||
| materials | No | ||
| readError | No | ||
| sequences | No | ||
| skinCount | No | ||
| mountError | No | ||
| sequenceCount | No | ||
| sequencesTruncated | No |