set_map_properties
Set worldspawn keyvalues like skyname, detail sprite/material pairs and prop fade width in a VMF, keeping paired detail values consistent so map grass renders with sprites and material.
Instructions
Sets the keyvalues that really live on worldspawn: the sky, the detail sprites, the prop fade width. Ordinary keyvalues on an ordinary entity, so this is edit_vmf with a shorter name -- except that detailvbsp and detailmaterial come as a pair, and setting one without the other gives a map whose grass either has no sprites or has sprites with no material, which vbsp mentions neither of. Fog is NOT here: Source reads fogenable, fogstart, fogend and fogcolor from an env_fog_controller, and writing them to worldspawn gives a file that parses and no fog in game. Create the controller with edit_vmf.
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": "set_map_properties"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Path to the .vmf, absolute or relative to the repo root. | |
| backup | No | Copy the file to <file>.bak before writing. Nothing is copied on a no-op. | |
| dryRun | No | Check and report without writing. Every verification runs either way. | |
| confirm | No | Required (true) to run this tool: it writes or executes. | |
| skyname | No | ||
| detailvbsp | No | Which sprites go on which material. | |
| detailmaterial | No | The sprite sheet itself. | |
| maxpropscreenwidth | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| changed | Yes | ||
| written | Yes | ||
| nextStep | Yes | ||
| warnings | Yes | ||
| unchanged | Yes | ||
| backupPath | Yes |