search_library
Search a Zotero library by title, creator, or year, or list items sorted by a chosen field to retrieve item keys for details, full text, or citations.
Instructions
Search your Zotero library or list items sorted by a field.
When 'query' is provided, matches it against titles, creator names and years (not abstracts, tags or full text). When 'query' is omitted, lists items sorted by the chosen field (default: dateAdded, descending).
Examples:
Search: { "query": "deep learning" }
Recent items: { "sort": "dateAdded", "limit": 10 }
Recent with search: { "query": "transformers", "sort": "dateAdded", "limit": 5 }
Use the returned item keys with get_items_details, get_item_fulltext, or inject_citations.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sort | No | Field to sort by (default: dateAdded) | dateAdded |
| limit | No | Maximum number of items to return, 1-100 (default: 25; above 100 returns 100) | |
| query | No | Search query. If omitted, returns items sorted by the chosen field. | |
| direction | No | Sort direction (default: desc) | desc |
| 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. |