download_and_parse_paper
Download an open-access PDF by supplying a DOI or arXiv ID, resolving legal copies from OpenAlex, Unpaywall, arXiv, and PMC.
Instructions
Download an open-access PDF. Does not create Markdown files.
Accepts a DOI or arXiv id. Resolves legal OA copies via OpenAlex locations, Unpaywall (preprints / accepted manuscripts), arXiv/PMC, and a few curated public URLs (e.g. the Bitcoin whitepaper on bitcoin.org). Does not bypass paywalls: publisher HTML is skipped.
Status values: ok, not_found, no_open_pdf, download_failed,
invalid_path.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| identifier | Yes | DOI (`10.xxxx/...` or doi.org URL) or arXiv id (`2301.12345`, `2301.12345v2`, or legacy `cs/0001001`). | |
| target_dir | No | Workspace-relative directory (default `papers`). Paths outside the server cwd are rejected. | papers |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| title | No | ||
| status | Yes | ||
| message | No | ||
| pdf_path | No | ||
| error_code | No | ||
| identifier | Yes | ||
| landing_url | No | ||
| identifier_type | No |