Manage Zotero saved searches
zotero_saved_searchesList, 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…
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 to your personal library go to the running Zotero desktop app (Zotero 10+) and otherwise to the cloud Web API; group libraries always write to the cloud.
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": {
"action": "<action>"
},
"name": "zotero_saved_searches"
}
}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 |
|---|---|---|---|
| target | No | Where the write went: "local" (Zotero desktop local API), "desktop" (connector protocol) or "cloud" (Zotero Web API). | |
| 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. |