List Zotero collections (read-only)
zotero_list_collectionsReturns all collections in a Zotero user or group library with keys, names, parent keys, and item counts, plus optional name search and paging to locate a collection.
Instructions
List collections in a Zotero library (key, name, parent collection key, item count), sorted by name. Read-only: available even in read-only mode (unlike zotero_manage_collections, which also writes). Every collection in the library is read, then q filters by name and start/limit page the result; totalResults says how many there are, so a large library is never mistaken for its first page. Use the keys to scope zotero_search_items (collectionKey) or zotero_tag_audit (scope.collection_keys).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| q | No | Only collections whose name contains this text (case-insensitive), searched over the whole library, not one page. Use it to find a collection by name. | |
| top | No | Only top-level collections. | |
| limit | No | Collections to return (default 200, at most 1000). | |
| start | No | Zero-based offset into the listing, for paging (default 0). Page with start += limit while `totalResults` is larger. | |
| 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. | |
| 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 |
|---|---|---|---|
| start | No | The offset this page starts at. | |
| complete | No | False when the library holds more collections than Zoteus reads in one listing (10,000); the page then comes from those read. | |
| collections | Yes | This page of the collections, sorted by name. Use a key to scope zotero_search_items or zotero_tag_audit. | |
| totalResults | No | Collections matching in total (every collection when there is no `q`), not just this page. Page with start/limit while it is larger. |