List collections
zotero_list_collectionsList Zotero collections in your library, with scopes for all, top-level, or direct subcollections, returning keys needed for creating items, adding to collections, and searching.
Instructions
List collections in a library. scope="all" returns every collection flat (each carrying its parentCollection key, so the full tree can be reconstructed in one call), "top" returns only root-level collections, and "children" returns the direct subcollections of parentKey. Collection keys returned here are what zotero_create_items, zotero_add_items_to_collection and zotero_search_items take.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum number of objects to return (1-500). | |
| scope | No | Which collections to return. "children" requires parentKey. | all |
| start | No | Zero-based offset for paging; pass the nextStart value from a previous call. | |
| groupId | No | Group library ID. Omit for the personal library ("My Library"), which is what almost every request wants. Group IDs come from zotero_list_libraries. | |
| verbose | No | Return Zotero's raw API envelope (library block, self/alternate links, full meta) instead of the flattened object. Costs many extra tokens per object; only useful when a URL or the raw meta block is genuinely needed. | |
| parentKey | No | Parent collection key; required when scope is "children". |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| start | Yes | ||
| hasMore | Yes | ||
| returned | Yes | ||
| nextStart | Yes | ||
| collections | Yes | ||
| totalResults | Yes |