Write WC3 object data
wc3_write_objectsWrite modified object data (units, items, abilities, etc.) back into a Warcraft 3 map. Accepts the original and custom object tables and saves to a specified output path or an edited copy.
Instructions
Write an object-data table back into the map and save. Pass the same { original, custom } shape returned by wc3_read_objects. Saves to outPath, or ".edited.w3x" beside the source if omitted (pass the source path to overwrite in place).
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": {
"mapPath": "<mapPath>",
"kind": "<kind>",
"data": "<data>"
},
"name": "wc3_write_objects"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mapPath | Yes | Absolute path to the source .w3x/.w3m map file | |
| kind | Yes | Which object-data table to write | |
| data | Yes | The object modification table ({ original, custom }) | |
| outPath | No | Output map path. Defaults to "<map>.edited.w3x". |