List collections
Collections and subcollections of the library with their keys and item counts.
MCP tool zotero_read → list_collections
read
Returns the collection tree with each key, its parent and the number of items directly in it. Collection names are not unique in Zotero, so use the key and the parent to tell two collections apart.
Parameters
| Name | Type | Description |
|---|---|---|
| library string | string | 'me' for My Library (default) or a group library ID from list_libraries. |
tools/call
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "zotero_read",
"arguments": {
"operation": "list_collections",
"arguments": {}
}
}
} Example response
{
"content": [
{
"type": "text",
"text": "{ ... same JSON as structuredContent ... }"
}
],
"structuredContent": {
"collections": [
{
"collection_key": "C4T8WZ2N",
"name": "Thesis: related work",
"parent": null,
"item_count": 2
},
{
"collection_key": "M2D7FQ4S",
"name": "Chapter 2",
"parent": "C4T8WZ2N",
"item_count": 0
}
]
},
"isError": false
}