zotero_add_by_csl_json
Add items to Zotero from CSL JSON by providing inline JSON or a file path. Preserves citation keys, attaches open-access PDFs when DOI exists, and manages collections and duplicates.
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 |
|---|---|---|---|
| csl_json | No | ||
| file_path | No | ||
| collections | No | ||
| tags | No | ||
| attach_mode | No | auto | |
| if_exists | No | duplicate | |
| create_missing_collections | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |