zotero_add_to_collection
File Zotero items into a collection using their keys, with batch support and option to create the collection if missing. Items can belong to multiple collections.
Instructions
File existing items into a collection via the web API (items can be in several collections at once; this does not remove them from others). Works in batches, so pass all the keys in one call. Set create=true to make the collection if it doesn't exist.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| keys | Yes | Item keys to file. | |
| create | No | Create the collection (top level, or under the path's parent) if missing. Default false. | |
| library | No | Library to use. Local: omit for My Library, or give a group name/ID. Web: omit for your user library, or give a group ID (or 'group:12345'). | |
| collection | Yes | Collection key, name, or 'Parent/Child' path. |