zotero_export_bibliography
Exports formatted bibliographies or in-text citations from Zotero items using CSL styles. Specify items by key, collection, or full library, and choose APA, MLA, Chicago, or BibTeX format.
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). Requires bibliography rendering support — if the API errors (e.g. local read-only mode), the tool suggests web API mode. Example: zotero_export_bibliography(item_keys=['RTKZQI8E'], style='apa', export_format='bib').
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| item_keys | No | Optional list of item keys (or JSON/comma string). | |
| collection_key | No | Optional collection to export. | |
| style | No | CSL style short name (default "apa"). | apa |
| export_format | No | "bib", "citation", or "bibtex". | bib |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |