List Warcraft III files
list_filesLists readable Warcraft III maps, campaigns, models, and replays with full paths and byte sizes, so you can narrow by folder or filename pattern and get the paths other tools need.
Instructions
Find the maps (.w3x, .w3m), campaigns (.w3n), models (.mdx, .mdl) and replays (.w3g) the server may read, with their full paths and sizes in bytes. Call it first, to get the paths the other tools take. It lists at most 1000 files and sets truncated when there are more; narrow the search with folder or pattern. Only reads: it changes no file, and the same call on the same file gives the same result.
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": "list_files"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| folder | No | The folder to search, with its subfolders. Empty searches every folder the server may read. A path under the folders the server was started with (--root). A relative path is taken from the first of them; list_files gives full paths that can be passed as they are. | |
| pattern | No | Keep only the files whose name contains this text, ignoring case, such as "dota" or ".w3g". Empty keeps all. |