download_with_fallback
Download academic papers by attempting source-native access, open access repositories, Unpaywall, and Sci-Hub as fallback.
Instructions
Try source-native download, OA repositories, Unpaywall, then optional Sci-Hub.
Args: source: Source name (arxiv, biorxiv, medrxiv, iacr, semantic, crossref, pubmed, pmc, core, europepmc, citeseerx, doaj, base, zenodo, hal, ssrn). paper_id: Source-native paper identifier. doi: Optional DOI used for repository/unpaywall/Sci-Hub fallback. title: Optional title used for repository/Sci-Hub fallback when DOI is unavailable. save_path: Directory to save downloaded files. use_scihub: Whether to fallback to Sci-Hub after OA attempts fail. scihub_base_url: Sci-Hub mirror URL for fallback. Returns: Download path on success or explanatory error message.
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": {
"source": "<source>",
"paper_id": "<paper_id>"
},
"name": "download_with_fallback"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| doi | No | ||
| title | No | ||
| source | Yes | ||
| paper_id | Yes | ||
| save_path | No | ./downloads | |
| use_scihub | No | ||
| scihub_base_url | No | https://sci-hub.se |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |