Get an attachment file path
zotero_get_attachment_pathResolve attachments to absolute file paths for direct access. Works for linked and imported files, and returns all attachment paths from a parent item key to open unindexed PDFs.
Instructions
Resolve an attachment to its absolute path on this machine, so the file can be opened and read directly. Works for both linked and imported attachments. Passing a regular item key returns the paths of all of its file attachments. Use this to read a PDF whose text Zotero has not indexed.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| groupId | No | Group library ID. Omit for the personal library ("My Library"), which is what almost every request wants. Group IDs come from zotero_list_libraries. | |
| itemKey | Yes | Attachment key, or a parent item key to resolve all of its attachments. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| attachments | Yes |