zotero_set_item_collections
Update item-collection memberships in Zotero by adding items to or removing them from specific collections, using item keys and collection paths, while preserving other memberships.
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 |