mpq_list
Lists the files inside a Diablo II MPQ archive, with header facts, file counts and each member's name, size and storage. Filter by name pattern to find specific files.
Instructions
List what's inside an MPQ archive on the local disk (Diablo II and its mods: d2data.mpq, d2exp.mpq, patch_d2.mpq...). Returns the archive's header facts, how many files it holds, how many have names, a count by file type, then the members: name, size, packed size and how each is stored. path: the .mpq file. pattern: optional filter, shell wildcards (*.txt, data\global\excel*) or a plain piece of the name; case and slash direction don't matter. limit: members shown, 1 to 1000 (default 200); start: skip this many, to page. Names come from the archive's own (listfile); an archive without one is said to have none, and its members are listed as FileNNNNNNNN.xxx. listfile: optional path of a text file of member names (one per line) to name them. Limits: MPQ format version 1 only (not the archives of later Blizzard games, nor Resurrected's CASC storage).
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": "mpq_list"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| limit | No | ||
| start | No | ||
| pattern | No | ||
| listfile | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |