Manage Zotero saved searches
zotero_saved_searchesList, create, or delete Zotero saved-search definitions using conditions. Note: manages definitions only; execute searches separately with zotero_search_items.
Instructions
List, create, or delete saved-search DEFINITIONS. NOTE: the Zotero cloud Web API stores saved searches but does NOT execute them — to get the items a saved search matches, run an equivalent zotero_search_items query (or use the desktop local API when available). Set action to "list" (all saved searches with their conditions), "create" (needs name and conditions, each {condition, operator, value}), or "delete" (needs search_key). Writes go to the cloud Web API.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Saved-search name (create). | |
| action | Yes | What to do. "list" returns every saved-search definition; "create" needs `name` + `conditions`; "delete" needs `search_key`. | |
| conditions | No | Search conditions (create). | |
| library_id | No | Numeric id of the library to address, e.g. 5234875 for a group (zotero_groups lists the ids you can reach). Omit to use the configured default library; an id given without library_type is read as a group id. | |
| search_key | No | Saved-search key (delete). | |
| library_type | No | Which library to address: "user" (a personal library) or "group" (a shared group library). Omit to use the library this server is configured for. "group" on its own is refused: pass library_id with it. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| created | No | Key of the saved search created. | |
| deleted | No | Key of the saved search deleted. | |
| searches | No | Saved-search definitions (action:"list"). The cloud API stores them but does not execute them. | |
| libraryVersion | No | The library's Last-Modified-Version after this write. |