build_change_items
Creates RPG Maker MZ event commands to add or remove items, weapons, or armor, using a constant or variable amount, with an option to include equipped gear.
Instructions
Build a Change Items (126), Change Weapons (127), or Change Armors (128) event command for insertion via insert_event_commands — gain/lose an item/weapon/armor by a constant or variable amount. includeEquip (weapon/armor only) also counts equipped copies when removing. Read-only: returns { command }.
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": {
"kind": "<kind>",
"id": "<id>",
"operation": "<operation>",
"operand": "<operand>"
},
"name": "build_change_items"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | The item/weapon/armor id | |
| kind | Yes | Which inventory to change | |
| indent | No | Indentation level (default 0) | |
| operand | Yes | The amount to gain/lose (constant or variable) | |
| operation | Yes | Gain or lose | |
| includeEquip | No | weapon/armor: also count equipped copies (default false) |