world-item-create
Create a new item in the world's Items Directory (game.items) — distinct from item-create (which adds to an actor's inventory). Use for shared loot, master copies, or items that exist independently of any actor. Folder is the folder ID (use folder-list to discover IDs); responses return the folder NAME (Foundry wire convention).
Valid type values for D&D 5e: weapon, equipment, consumable, tool, container, loot, spell, feat, background, race, class, subclass, feature. Other systems will have different types — module rejects unknown ones.
system data is the D&D 5e blob (rarity, weight, price, identified, attunement, etc.). See world-item-get response for canonical shape.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| img | No | Image path or URL | |
| name | Yes | Item name | |
| type | Yes | D&D 5e item type. weapon/equipment/consumable/tool/container/loot/spell/feat/background/race/class/subclass/feature. | |
| folder | No | Folder ID (NOT name). Omit for root. | |
| system | No | D&D 5e system data partial: rarity, weight {value,units}, price {value,denomination}, identified, attunement, etc. Foundry deep-merges with defaults. |