Format a bibliography (citeproc / any CSL style)
zotero_format_bibliographyFormat bibliographies from CSL-JSON items or library keys using any citation style, with configurable locale and output format (HTML, text, or RTF).
Instructions
Render a formatted bibliography in any CSL style using citeproc-js — no Zotero library write required. Provide either items (an array of CSL-JSON objects, e.g. from zotero_import or external metadata) or item_keys (library items, which are exported to CSL-JSON first). Choose style (a name like "APA 7th" or a CSL id; default "apa"), locale (default "en-US"), and format (html/text/rtf; default html). The formatted bibliography text is returned. Use this for arbitrary items or styles; for items already in the library you can also use zotero_bibliography (server-rendered).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| items | No | CSL-JSON items to format. | |
| style | No | Style name or CSL id (default "apa"). | |
| format | No | Output format (default html). | |
| locale | No | Locale (default "en-US"). | |
| item_keys | No | Library item keys (exported to CSL-JSON). | |
| library_id | No | ||
| library_type | No |