equip
Puts an item from the pack on a party member, or takes one off, the way the inventory screen does, so the game’s rules apply (requirements, which items fit which slot).
action is one of:
- equip (default): puts
iteminslot. Whatever the slot held goes back to the pack. Returns what the slot heldbeforeand holdsafter, and whether it worked (equipped). If it did not, the answer says whether the game thinks the creature can use the item (canUse), with itsrequirementsandrestrictionswhere known. - unequip: takes
itemoff and puts it in the pack. Returns whether it came off (unequipped).
It acts on id, by default the party member selected in the interface, and selects nobody: the selection and control stay as they were.
Arguments
| Name | Type | Required | What |
|---|---|---|---|
action | "equip" | "unequip" | What to do. Default: equip. | |
item | string | yes | The item, by its id from inventory or equipment. |
slot | any | For equip: the slot, by name (main, offhand, ring1, ring2, …) or number. Default: the first slot the item fits. | |
id | string | The party member, by creature id. Default: the one selected in the interface. |
Call it as equip over MCP, or POST /api/tool/equip with the arguments as JSON.