search_library
Search your entire Zotero library across metadata, full-text PDFs, and notes. Get snippets, page numbers, and source details to locate and cite specific information.
Instructions
Search across the whole library. scope is one of:
'metadata' (titles/authors/abstracts, always available),
'fulltext' (inside PDF text, requires the index to have been built —
see rebuild_search_index / scripts/build_index.py),
'notes' (inside your notes, same index requirement), or
'all' (default: every scope, merged).
Searches across every library — your personal library and all
group/shared libraries — by default; pass library_id (see
list_libraries) to scope to just one.
Each fulltext/notes result includes a library_id, a snippet, and the
exact page (for PDFs) so you can cite it, plus the parent item_key to
fetch more with get_item / get_item_fulltext.
IMPORTANT: whenever you report fulltext or notes results to the user,
mention the index_last_updated timestamp included in the response
(e.g. "based on your library as of ") — those two scopes
come from a separately built search index, not a live query, so the
user should know how current it is. metadata-only results don't need
this since they're always live.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | ||
| query | Yes | ||
| scope | No | all | |
| library_id | No |