import_pdf_to_zotero
Download a PDF from a direct URL and store it in Zotero as an imported attachment, making its full text searchable via fulltext indexing. Use when the PDF needs to be indexed in Zotero.
Instructions
Download a PDF from a URL and upload it to Zotero storage as an imported_url attachment. Unlike linked URL attachments, imported files are stored in Zotero's storage and become fulltext-indexed (searchable via get_item_fulltext). Use this when you need the PDF content to be indexed by Zotero. The URL must lead straight to the PDF file (no login, paywall or HTML landing page); files up to 100 MB, counted against the user's Zotero file storage. For items with a DOI, find_and_attach_pdfs finds open-access PDFs by itself.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | URL of the PDF to download and import | |
| tags | No | Tags to apply to the attachment | |
| title | No | Display title for the attachment (default: filename) | |
| filename | No | Filename for the attachment (default: extracted from URL or document.pdf) | |
| library_id | No | Numeric user or group ID for this call (a group's ID is the number in its zotero.org/groups/<id> URL). Default: the configured library. Required with library_type 'group' when the server is configured for a user library. | |
| collections | No | Collection keys (only used for standalone attachments, ignored when parent_item is set) | |
| parent_item | No | Item key of the parent item. If provided, the attachment becomes a child of that item. | |
| content_type | No | MIME type recorded on the attachment (default: "application/pdf"). This tool imports PDFs only: the downloaded file must start with %PDF- or the import is rejected, whatever this value says. Full text is extracted only for "application/pdf". | application/pdf |
| library_type | No | Library for this call: 'user' (personal) or 'group'. Default: the library configured on the server. |