Zotero attachments (files)
zotero_attachmentUpload, download, or inspect attachment files in your Zotero library using the cloud Web API and file-storage quota.
Instructions
Upload, download, or inspect attachment files. action: "upload" stores a local file as a Zotero attachment using the full File Storage protocol (provide file_path; optional parent_item to attach it under an item, title, content_type) and returns the new attachment key; "download" fetches an attachment's file to a local path (provide item_key; optional save_path, default under the Zoteus data dir) and returns the path and byte count; "info" returns an attachment item's metadata. File bytes are written to / read from disk — they are never streamed through the conversation. Upload/download use the cloud Web API and your file-storage quota.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| title | No | ||
| action | Yes | ||
| item_key | No | Attachment item key (download/info). | |
| file_path | No | Local file to upload. | |
| save_path | No | Where to write the downloaded file. | |
| library_id | No | ||
| parent_item | No | Parent item key to attach under (upload). | |
| content_type | No | ||
| library_type | No |