Object data
object_dataRead units, items, abilities, buffs, upgrades, doodads, and destructables a Warcraft III map adds or changes, with field names and strings resolved. Check map-specific costs, stats, or ability data.
Instructions
Read the units, items, destructables, doodads, abilities, buffs and upgrades a map adds or changes, with the game's field names (such as goldcost, spd or abilList) and the map's strings resolved. Each kind has an original table, for standard objects the map changes, and a custom table, for new objects with their template_id. Use it to answer what a unit costs or what an ability does in a map; only the fields the map changes are listed, not the game's defaults. On a large map, ask for one object_type or some ids. 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": "object_data"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ids | No | Keep only these four-character object ids, such as hfoo (Footman) or A000 (a custom ability). Empty keeps every object. | |
| path | Yes | A .w3x or .w3m map, or a single object file (.w3u, .w3t, .w3b, .w3d, .w3a, .w3h or .w3q). 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. | |
| object_type | No | Keep one kind of object: w3u units, w3t items, w3b destructables, w3d doodads, w3a abilities, w3h buffs, w3q upgrades. Empty keeps every kind. |