Trigger text
trigger_textReads a Warcraft III map's GUI triggers as World Editor lines for each event, condition, and action, so you can explain what the map's triggers do.
Instructions
Read a map's GUI triggers as the World Editor shows them, one line per event, condition and action. Use it to explain what a map's triggers do. A large map's triggers run to hundreds of thousands of characters: start with names_only, then pass name. Triggers written as custom text are in the script; check_script or read_member on war3map.j reads them. 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": "trigger_text"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Keep only the triggers whose name contains this text, ignoring case. Empty keeps all. | |
| path | Yes | A .w3x or .w3m map, or a war3map.wtg 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. | |
| names_only | No | Return only the trigger names. Use it first on a large map, then ask for single triggers by name. |