validate_cfg
Validate .cfg commands for CS2 or Deadlock against indexed convars and commands to catch unknown names, out-of-range values, and cheat/devonly or client/server context issues.
Instructions
Check every command in a .cfg against the indexed convars/commands: unknown names (with suggestions), out-of-range values, cheat/devonly flags, and client-vs-server context.
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": {
"text": "<text>",
"game": "<game>"
},
"name": "validate_cfg"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| game | Yes | Game id: one of cs2, deadlock | |
| text | Yes | Contents of a .cfg file | |
| context | No | Where the cfg runs (affects warnings) | server |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | ||
| errors | Yes | ||
| commands | Yes | ||
| warnings | Yes | ||
| diagnostics | Yes |