equip_item
Equip an item on an active build from raw Path of Building item text, optionally specifying the slot. Returns updated stats and flags any illegal affixes.
Instructions
Equip an item on the active build from raw Path of Building item text.
Replaces whatever is currently in the target slot. slot optionally forces the slot; otherwise
the item's primary slot is used — which for a PAIRED slot is the first one, so pass an explicit
slot for "Ring 2"/"Weapon 2" or it silently overwrites Ring 1/Weapon 1. Returns updated stats.
Hand-written items are checked against the real mod pool: if an affix can't roll on the base
type (e.g. flat/% maximum Mana on a body armour), the result carries illegalAffixes + a
legalityWarning — the computed stats then include invented mods and aren't achievable. Ground
gear in real mods (optimize_item, parse_item, search_mods) to avoid this.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| raw | Yes | ||
| slot | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||