upload_attachment
Attach a file to an existing Zotero item by providing parent key, filename, and base64-encoded content. Creates a new attachment item without altering the parent.
Instructions
Upload a new file attachment as a child of an existing item (e.g. attach a PDF to a journalArticle item). Safe: creates a brand-new attachment item with its own key; never touches the parent item's own fields or version.
filename: name to store the file under, e.g. "paper.pdf" -- also used to guess Zotero's contentType from the extension. content_base64: the file's bytes, base64-encoded. This server runs remotely and has no access to the caller's local filesystem, so content must travel as a string rather than a local path. title: attachment title shown in Zotero; defaults to filename.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| title | No | ||
| filename | Yes | ||
| parent_key | Yes | ||
| content_base64 | Yes |