Get Preprint by DOI
biorxiv_get_preprintFetch full metadata, the abstract, all revision history, JATS XML full-text links, and published-journal DOI for one or more preprints by DOI. Each DOI returns all revisions in one response, with the abstract on the latest revision only — the API keeps one abstract per preprint. Each call looks up the first 10 distinct DOIs and returns the rest, never looked up, in unprocessed[] — pass that list as dois in another call to continue; a repeated DOI is looked up once and an unparseable entry is reported in failed[], so neither counts toward the 10. When server="both" (default), each DOI is checked against both bioRxiv and medRxiv; the response includes which server the preprint was found on. Failed lookups are reported per-DOI in failed[] rather than aborting the batch, each carrying a reason (not_found, invalid_doi_format, upstream_unavailable, rate_limited) and a retryable flag; a rate_limited entry also carries the wait in seconds the origin asked for. preprints[], failed[], and unprocessed[] follow input order. DOIs must match the pattern 10.NNNN/…; a doi.org or article URL, a doi: label, and a trailing vN / .full suffix are stripped first, and results report the bare DOI.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"dois": "<dois>"
},
"name": "biorxiv_get_preprint"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dois | Yes | Preprint DOIs to look up, up to 200 entries. The first 10 distinct DOIs are looked up; the rest are returned in unprocessed. | |
| server | No | Server to query. "both" checks bioRxiv and medRxiv in parallel for each DOI. | both |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cap | No | The most distinct DOIs one call looks up. | |
| error | No | Present when the call failed. Absent on success. | |
| shown | No | Distinct DOIs looked up in this call. | |
| failed | No | DOIs that could not be resolved, with per-DOI error details. | |
| notice | No | How to look up the DOIs left in unprocessed, and how many failed[] entries are retryable alongside them. | |
| preprints | No | Successfully resolved preprints with their full revision history. | |
| truncated | No | True when DOIs past the first 10 were left in unprocessed. | |
| unprocessed | No | Valid, distinct DOIs past the first 10, in input order — not looked up, so neither found nor failed. Pass this list as dois in another call to continue. Empty when every DOI was looked up. |