build_model
Writes a Source 2 .vmdl document for a mesh already in the addon, matching the shape the game compiler accepts. Returns the written path; set overwrite to replace an existing file.
Instructions
Write a Source 2 model document (.vmdl) for a mesh that is already inside the addon.
`mesh` is addon-relative (e.g. models/probe/probe.dmx). The document copies the shape the
game's own compiler accepts — compile it on a host with resourcecompiler afterwards
(build_start). Returns the written path. Use overwrite=true to replace an existing .vmdl.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": {
"addon": "<addon>",
"name": "<name>",
"mesh": "<mesh>"
},
"name": "build_model"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| game | No | Game id: one of cs2, deadlock | cs2 |
| mesh | Yes | ||
| name | Yes | ||
| addon | Yes | Addon name: lowercase [a-z0-9_], e.g. 'jump_arena' | |
| overwrite | No | ||
| translate | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |