download_pdfs
Download open-access PubMed PDFs by PMID (up to 50), saving each as PMID.pdf while skipping paywalled papers and rejecting non-PDF pages.
Instructions
Download open-access PDFs for the given PMIDs (max 50) as PMID.pdf. Paywalled papers are skipped, never bypassed.
folder: absolute path, or a sub-folder name under PUBMED_PDF_DIR (default ~/pubmed_pdfs). Every file is verified to be a real PDF (starts with %PDF); HTML login/bot-check pages are rejected and reported as failed.
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": {
"pmids": "<pmids>"
},
"name": "download_pdfs"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pmids | Yes | ||
| folder | No |