zotero_search_collections
Search collections by name in the active Zotero library using case-insensitive substring matching. Returns 8-character keys and parent info; multi-word queries use AND logic; optionally include trashed collections.
Instructions
Search collections by name in the active library and return their 8-character keys. Matching is case-insensitive substring and applies ONLY to the collection's own name — not to parent names, descriptions, or items inside the collection. Multi-word queries are ANDed across words (NOT OR-ed): query 'reading list' matches only collections whose name contains both 'reading' AND 'list'. To match either word, issue two separate searches. Leading/trailing whitespace is ignored and empty words are dropped. Returns the collection's key plus its parent (if any). include_trashed: when True, also match collections currently in the Zotero Trash (results annotated as such). Default False — trashed collections are otherwise invisible to automated clients. Performance: scans all collections in the active library (O(n)); for very large libraries expect a full-list pagination under the hood. Example: zotero_search_collections(query="orals") → keys for every collection with "orals" in its name.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | ||
| include_trashed | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |