attach_pdf
Create a Zotero item from a PDF URL or local path by supplying metadata such as title and authors. The PDF is attached, with optional e-reader delivery. Ideal for grey literature not indexed in registries.
Instructions
Ingest a PDF you already have into Zotero, with the PDF attached.
For grey literature and works no registry indexes (author-circulated
preprints, lecture notes, working papers, open-access textbooks).
Downloads the PDF from an http(s) URL (or reads a local path when
running locally), creates a Zotero item of item_type from the
metadata YOU supply, and attaches the PDF to it — no registry lookup,
so a title/authors the model already knows is enough. item_type
is one of journalArticle, book, bookSection, report, thesis, preprint,
conferencePaper, manuscript, document (default journalArticle); use
'book' for an open-access textbook PDF. Files into collections
(created on demand) and, unlike queue_papers, does NOT queue. With
send=True it also delivers the PDF to your e-reader in the same call.
Requires Zotero.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| doi | No | ||
| send | No | ||
| year | No | ||
| title | Yes | ||
| authors | Yes | ||
| item_type | No | journalArticle | |
| collections | No | ||
| url_or_path | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |