set_cordon
Set the cordon box and toggle it on or off to control which parts of a VMF compile. Use it to test one room quickly or confirm whether a cordon is active.
Instructions
Sets the cordon box and whether it is on. The only piece of a map's organisation that changes what compiles: with the cordon on, vbsp is handed only what the box contains and everything outside it is simply not in the map. It is how a mapper tests one room of a city without waiting for the city, and it is also how a map ships with three quarters of itself missing -- vbsp does not warn, because from its point of view nothing is wrong. Setting it always reports whether it is active.
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>",
"mins": "<mins>",
"maxs": "<maxs>"
},
"name": "set_cordon"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| maxs | Yes | ||
| mins | Yes | ||
| name | No | Default 'cordon'. | |
| path | Yes | Path to the .vmf, absolute or relative to the repo root. | |
| active | No | Default true. False leaves the box and turns it off. | |
| 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. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| path | Yes | ||
| active | Yes | ||
| written | Yes | ||
| nextStep | Yes | ||
| warnings | Yes | ||
| unchanged | Yes | ||
| backupPath | Yes |