zotero_export_bibliography
Render formatted bibliographies or in-text citations from Zotero items using CSL styles like APA, MLA, Chicago, IEEE, or export raw BibTeX. Choose specific items, a collection, or the active library.
Instructions
Render a formatted bibliography or in-text citations for a set of Zotero items using Zotero's own CSL citation engine, so you can drop references straight into a manuscript. item_keys: optional list of 8-character item keys (also accepts a JSON list string); takes precedence over collection_key. collection_key: optional collection to export instead; if neither is given, the active library is exported (capped). style: CSL style short name (default 'apa'); e.g. 'modern-language-association', 'chicago-note-bibliography', 'ieee'. Ignored for bibtex. export_format: 'bib' (formatted reference-list entries, default), 'citation' (in-text citation strings), or 'bibtex' (raw BibTeX for .bib files). Output: markdown naming the style/format, then the rendered entries (a fenced block for bibtex, a numbered list otherwise). Rendering uses Zotero's own CSL engine and works in local mode with no API credentials, as well as over the web API. Capped at 100 items per call; scope with item_keys or collection_key for anything larger. Example: zotero_export_bibliography(item_keys=['RTKZQI8E'], style='apa', export_format='bib').
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| style | No | CSL style short name (default "apa"). | apa |
| item_keys | No | Optional list of item keys (or JSON/comma string). | |
| export_format | No | "bib", "citation", or "bibtex". | bib |
| collection_key | No | Optional collection to export. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |