read_fgd_class
Retrieve the exact FGD schema for any Left 4 Dead 2 entity class: keyvalues with types and defaults, inputs, and outputs. List classes by prefix to check what Hammer accepts before writing VMF.
Instructions
What the game's own FGD declares for an entity class: every keyvalue with its type and default, every input, every output. This is the schema Hammer enforces, so it answers 'does this class accept that key' without guessing from the wiki. Called with no classname it lists the classes, optionally filtered by prefix. Reads left4dead2.fgd from the game's own bin directory, not a generic multi-game database. Needs the Python sidecar and the Left 4 Dead 2 install; see health.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "read_fgd_class"
}
}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. | |
| limit | No | ||
| prefix | No | When listing: keep classes starting with this. | |
| classname | No | Exact class, e.g. logic_relay. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | No | ||
| inputs | No | ||
| matched | No | ||
| outputs | No | ||
| returned | No | ||
| classname | No | ||
| keyvalues | No | ||
| classCount | Yes | ||
| classnames | No | ||
| description | No | ||
| toleratedHelpers | Yes |