zotero_set_item_collections
Add items to or remove items from Zotero collections in one call by supplying item keys with collection keys, names, or paths; unspecified memberships remain unchanged.
Instructions
Change which collections existing items belong to — an incremental add/remove of item membership, NOT collection creation (use zotero_create_collection / zotero_delete_collection for that). item_keys must be an ARRAY of item keys, e.g. ["KEY1", "KEY2"] — not a single string. add_to and remove_from accept arrays of collection keys, names, or '/'-separated paths (resolved and validated automatically; unknown, trashed, or ambiguous specs fail before anything is changed). Existing memberships not named in remove_from are left alone; to replace an item's memberships wholesale use zotero_update_item. Use zotero_search_items to find item keys and zotero_search_collections to find collection keys.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| add_to | No | ||
| item_keys | Yes | ||
| remove_from | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |