get_collections
List collections (folders) in a Zotero library to get their keys, names, and parent relationships, excluding trashed collections by default.
Instructions
List all collections (folders) in your Zotero library. Returns an array of collection keys, names, and parent relationships (an empty array [] when the library has no collections — items can still be found with search_library, and create_collection makes one). Use collection keys with get_collection_items or as parent_collection in create_collection. Trashed collections are excluded by default.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "get_collections"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| library_id | No | Numeric user or group ID for this call (a group's ID is the number in its zotero.org/groups/<id> URL). Default: the configured library. Required with library_type 'group' when the server is configured for a user library. | |
| library_type | No | Library for this call: 'user' (personal) or 'group'. Default: the library configured on the server. | |
| include_trashed | No | Include trashed (deleted) collections. Default false. |