Download a paper PDF
download_paperResolve any paper ID to an open-access PDF, save it to disk, and optionally add it to a library collection.
Instructions
Resolve one paper to an open-access PDF and save it to disk, optionally indexing it into a library collection.
Writes a file under save_dir (default: the configured papers directory); a repeat call for the same paper overwrites the same path. Use read_paper instead when you only need the text once. Resolution tries the canonical archive (arXiv, Europe PMC), repository resolvers, preprint servers and Unpaywall in order; a paywalled paper with no open copy returns a clear failure and writes nothing.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| paper_id | Yes | Paper identifier (S2 ID, DOI, ArXiv:ID, etc.) | |
| save_dir | No | Directory to save PDF (default: configured download directory) | |
| collection | No | Knowledge-base collection to index the PDF in. Empty disables indexing. | downloads |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||