find_and_attach_pdfs
Find open-access PDFs via Unpaywall for Zotero items with DOIs and attach them to your library; run in dry-run mode to preview availability without downloading.
Instructions
For each Zotero item, check Unpaywall for open access PDFs and attach them. Items must have a DOI; needs UNPAYWALL_EMAIL in the server settings. Uploads use the user's Zotero file storage; dry_run only reports what is available. Uses the same source as Zotero Desktop's 'Find Available PDFs'.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "find_and_attach_pdfs"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dry_run | No | Only report which PDFs are available without downloading/attaching | |
| item_keys | No | Array of Zotero item keys to process (mutually exclusive with collection_key) | |
| 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. | |
| library_type | No | Library for this call: 'user' (personal) or 'group'. Default: the library configured on the server. | |
| collection_key | No | Process all items in this collection (mutually exclusive with item_keys) | |
| skip_if_attachment_exists | No | Skip items that already have a PDF attachment |