read_campaign
Reads a Left 4 Dead 2 campaign file or VPK mission entry, returning the mission block, modes, and numbered chapters with maps, display names, and images.
Instructions
Reads a Left 4 Dead 2 campaign file: the mission block, its modes (coop, versus, survival, scavenge) and each mode's numbered chapters with the map, display name and image. Accepts a .txt on disk, or a vpk plus the entry inside it -- the game's own campaigns live in left4dead2/pak01_dir.vpk under missions/. Unknown keys and nested blocks are kept, so a later write does not silently drop them.
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_campaign"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| vpk | No | Path to a .vpk, when the mission lives inside one. | |
| path | No | Path to the mission .txt, absolute or relative to the repo root. | |
| entry | No | Entry inside the VPK, e.g. missions/campaign1.txt. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| image | Yes | ||
| modes | Yes | ||
| source | Yes | ||
| modeNames | Yes | ||
| chapterCount | Yes | ||
| displayTitle | Yes |