zotero_get_collections
List all collections in the current Zotero library as a hierarchical tree with keys, showing parent and subcollections.
Instructions
List all collections in the currently active Zotero library as a hierarchical tree (parents and nested subcollections, each with its 8-character key). Use this when the user wants to see the full library structure. If you already know a name and just need the key, prefer zotero_search_collections — it returns only matches. Scope is limited to the active library — switch libraries with zotero_switch_library before listing. Deep hierarchies render inline without truncation, so very deep trees can be long. limit: cap on collections returned; pass None (default) to use 100, or raise to 5000 for libraries with thousands of collections. include_trashed: when True, also show collections in the Zotero Trash (annotated as such). Default False, matching Zotero desktop's default view. Example output:
Orals (Key: MT53KB66)
Early America (Key: 3249BZKE)
I. Historiography & Methodology (Key: XFN79DUT)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum number of collections to return | |
| include_trashed | No | if True, merge collections currently in Zotero's Trash into the listing, annotated with ``[trashed]``. Default False matches the Zotero desktop default and the prior behavior of this tool. Trashed collections are normally invisible to automated clients (#233) — turn this on when you need to know they exist. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |