zotero_upload_file
Attach a local file to a Zotero item by creating a stored-file child attachment and uploading the file. Pass an attachment key to upload into an existing attachment; fails if one is already stored.
Instructions
Attach a local file to an item: creates a stored-file (imported file) child attachment and uploads the file into it. If you pass an attachment key instead, the file is uploaded to that existing attachment (fails if one is already stored). Supported for imported-file attachments, not linked URLs.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| title | No | Attachment title; defaults to the file name. | |
| filename | No | Name to store it under; defaults to the file's name. | |
| filepath | Yes | Absolute path of the file on disk. | |
| item_key | Yes | Parent item key (creates a new child attachment) or existing attachment key. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |