Zotero Set Item Collections
zotero_set_item_collectionsAdd or remove existing Zotero items from specific collections without creating collections. Use it to update item membership incrementally while leaving unnamed memberships 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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"item_keys": "<item_keys>"
},
"name": "zotero_set_item_collections"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| add_to | No | ||
| item_keys | Yes | ||
| remove_from | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |