preprint_fulltext
Fetch complete bioRxiv or medRxiv preprint full text by DOI (latest or specified version), parsed into sections and returned as a file or inline text for reading and analysis.
Instructions
On-demand bioRxiv/medRxiv preprint full text (JATS XML, parsed to sections). Input: a preprint DOI (e.g. "10.1101/2025.03.05.641768"), optional version (default: latest). Downloads are strictly on-demand (never run during search), paced, and cached per (doi, version) — JATS per version is immutable, so repeat calls are served from cache without re-downloading. www.biorxiv.org rate-limits aggressively: on a 429/Cloudflare verdict this tool pauses downloads for >=60s (Retry-After honored) and every call during the cooldown returns an honest unavailable/rate_limited envelope with retry_after_sec — cached copies are still served instantly. The per-article license (cc by, cc by-nc-nd, na, ...) rides on every reply and governs reuse; for corpus-scale text mining use the bioRxiv/medRxiv monthly S3 buckets (see https://www.biorxiv.org/tdm). Output "file" (default): complete text written to a server-side markdown file, reply carries file_path + outline (Read/Grep selectively); "inline": capped text sections (fulltext_max_chars, default 40000).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | bioRxiv/medRxiv preprint DOI (e.g. "10.1101/2021.10.25.465764", "10.64898/2026.08.11.744243"); journal-article identifiers are rejected — use article_get for those | |
| output | No | "file" (default): complete text in a server-side markdown file; the reply carries file_path + outline. "inline": text sections returned inline, capped by fulltext_max_chars. | |
| version | No | Preprint version to fetch (default: latest). Pinned versions are served from cache with zero network when already fetched. | |
| fulltext_max_chars | No | Inline-mode only (output="inline"); default 40000. Ignored in file mode — files carry the complete text (2MB safety cap). |