zotero_add_by_bibtex
Import BibTeX citations into Zotero, preserving citation keys and attaching PDFs from DOIs. Handle duplicates and assign to collections.
Instructions
Add one or more items to Zotero from BibTeX. Provide EITHER bibtex (inline string) OR file_path (absolute path to a .bib / .bibtex file) — not both. Supports multiple @entries per call. The citation key from each entry is preserved in the Extra field. If an entry has a DOI, an open-access PDF attachment is attempted. collections accepts keys, names, or '/'-paths (validated before create). if_exists: 'duplicate' (default) | 'file' (entries whose DOI already exists reuse that item — add missing collections/tags instead of duplicating) | 'skip' (leave existing matches untouched); entries without a DOI always create. create_missing_collections: create unknown collection specs.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tags | No | ||
| bibtex | No | ||
| file_path | No | ||
| if_exists | No | duplicate | |
| attach_mode | No | auto | |
| collections | No | ||
| create_missing_collections | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |