import-item
Copy an existing D&D 5e item from a compendium pack to an actor or world Items sidebar, preserving artwork and system data.
Instructions
[D&D 5e only] COPY an existing item from a compendium pack onto an actor (or into the world Items sidebar), keeping its artwork, full system data, and activities. PREFER THIS over add-item for any real piece of gear — a plain greatsword, a Potion of Healing, a +1 shield, a magic weapon: copying brings the correct PHB/DMG 2024 stats AND the graphic, where authoring from scratch does not.
WORKFLOW: 1) find the item with search-compendium (prefer the 2024 packs: "dnd-players-handbook.equipment", "dnd-dungeon-masters-guide.equipment" — premium books ONLY, never the dnd5e.* SRD); 2) import-item with its packId + itemId; 3) for a CUSTOM item, copy the closest base then refine it with update-actor-item / manage-activity / manage-effect and rename via name.
Optional on-copy tweaks: name (rename), quantity, equipped, identified, container (nest in a bag/chest), folder (world target only). Target an actor with actorIdentifier, or omit it to build a reusable world Item. Use add-item only for genuine homebrew with no compendium base.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Rename the copy (e.g. when adapting a base item into a custom magic item). | |
| folder | No | When copying to the world (no actorIdentifier), place the item in this folder. | |
| itemId | Yes | Entry id within the pack (from search-compendium / get-compendium-entry results). | |
| packId | Yes | Compendium pack id holding the item (e.g. "dnd-players-handbook.equipment", "dnd-dungeon-masters-guide.equipment"). Premium MM/PHB/DMG books ONLY — never the dnd5e.* SRD (design.md §2.3). Find it with list-compendium-packs / search-compendium. | |
| equipped | No | Set equipped state on the copy (equippable items only; ignored otherwise). | |
| lootCopy | No | [actor target] Also mint a matching WORLD Item (same art + stats) so the party can loot this gear afterward (rule 9). DEFAULT ON for magic items (rarity set or "mgc"); pass false to suppress, or true to force a loot copy of a mundane item too. Ignored for a world-item target. | |
| quantity | No | Override the stack count on the copy. | |
| container | No | Id or name of an EXISTING container on the same target to nest the copy inside. | |
| identified | No | Set identified state (false = mystery/unidentified loot). | |
| lootCopyFolder | No | Folder for the loot copy (created if absent). Default "Loot". | |
| actorIdentifier | No | Target actor (name or id, partial match) to copy the item onto. Omit to copy into the world Items sidebar instead. |