write_vmf
Creates an empty .vmf map with a worldspawn skyname for Hammer, refusing to overwrite existing files so other map writers have the base file they expect.
Instructions
Creates an empty .vmf: Hammer's File > New. The map every other writer here assumes already exists -- write_vmf_solid reads its target before writing and refuses a file with no world block, so neither an absent nor an empty file is a place to start. Writes worldspawn with a skyname, because a map without one renders whatever sky the engine loaded last. REFUSES to overwrite: a map is hours of work and this tool's whole job is the first second of it.
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": "write_vmf"
}
}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. | |
| path | Yes | Where to create the .vmf, absolute or relative to the repo root. | |
| 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 | worldspawn's skyname. read_game_content lists what the game has. | sky_l4d_c1_1 |
| gridSpacing | No | The grid an editor opens the file showing. Cosmetic; nothing compiles from it. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | Yes | ||
| path | Yes | ||
| bytes | Yes | ||
| dryRun | Yes | ||
| skybox | Yes | ||
| skyname | Yes | ||
| written | Yes |