Manage items
manage-world-itemsCreate, list, update, add, and remove world or actor items in Foundry VTT, validating types before any change.
Instructions
Items in the world and on actors. "create" makes world items (in a folder by id or path, created when missing and named in the answer), "list" filters world items by type, folder and part of the name, "update" changes world items by id, "add-to-actor" creates items directly on an actor, "remove-from-actor" deletes items of an actor by id or exact name (needs the actor permission "full"; a name that fits several items is refused), and "describe" returns the valid item types and the enumerated values the adapter of the game system reads from its configuration. Item types are checked against the game system before anything is written.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | No | For "list": only this item type. For "remove-from-actor": only items of this type match itemNames | |
| items | No | For "create" and "add-to-actor": the new items | |
| action | Yes | What to do; each action names the parameters it needs | |
| folder | No | For "create": id or path of the item folder, created when missing. For "list": only items directly in this folder (id or exact name) | |
| itemIds | No | For "remove-from-actor": ids of items on the actor | |
| updates | No | For "update": changes of world items by id; all ids are checked before anything is written | |
| itemNames | No | For "remove-from-actor": exact names of items on the actor, ignoring case; a name that fits several items is refused | |
| nameFilter | No | For "list": part of the name, ignoring case | |
| actorIdentifier | No | For "add-to-actor" and "remove-from-actor": the actor. Id of the actor, its exact name (case does not matter) or the id of one of its tokens |