Read a file inside a map
read_memberRead a single file inside a Warcraft III map, returning parsed data for supported formats, text for scripts or text files, and size for other files without modifying the map.
Instructions
Read one file inside a map. For a format wc3files reads (war3map.w3i, w3e, doo, w3r, wts, wtg, wct, the object files and more) it returns the parsed data, for a script or text file its text, and for any other file only its size. Prefer the focused tools when they fit: map_info for war3map.w3i, object_data for the object files, trigger_text for war3map.wtg, check_script for the script and model_info for a model. A large result such as a whole terrain is refused past max_chars. Only reads: it changes no file, and the same call on the same file gives the same result.
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>",
"member": "<member>"
},
"name": "read_member"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | The .w3x or .w3m map. 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. | |
| member | Yes | The file inside the map, as list_members names it, such as war3map.w3e, war3map.j or war3mapImported\Hero.mdx. | |
| max_chars | No | The longest result, in characters of JSON, before the call is refused with a hint on how to ask for less. Default 200000. |