Check a script
check_scriptValidates a Warcraft III map's JASS or Lua script against game natives and Blizzard functions, reporting unknown calls, argument errors, and line-specific findings to explain load failures.
Instructions
Check a map's JASS or Lua script against the game's natives and Blizzard functions, as wc3files jass --check does: calls to unknown functions, wrong argument counts, arguments of the wrong type and similar errors. It returns the counts by severity and each finding with its line. Use it to find why a map's script may fail to load; read_member on war3map.j gives the script text itself. 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>"
},
"name": "check_script"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | A .w3x or .w3m map, whose war3map.j or war3map.lua is checked, or a .j or .lua script file. 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. | |
| 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. |