zotero_add_by_csl_json
Add one or more items to Zotero from CSL JSON, either inline or from a file. Preserves citation keys, attempts PDF attachment for DOIs, and handles duplicates via collections and tags.
Instructions
Add one or more items to Zotero from CSL JSON. Provide EITHER csl_json (inline — a JSON string, object, or array) OR file_path (absolute path to a .json / .csljson file) — not both. The id field is preserved in the Extra field as the Citation Key. 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) | 'skip'; entries without a DOI always create. create_missing_collections: create unknown collection specs.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tags | No | ||
| csl_json | 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 |