download_single_pdf
Downloads a single open-access PDF from PubMed Central using its PMCID. Saves to your specified directory and skips if the file already exists.
Instructions
下载单个 PMC 文章的 PDF。已存在文件会自动跳过。
Args:
pmcid: PMCID(如 "PMC7440785")
output_dir: PDF 保存目录的绝对路径
pmid: 可选 PMID,用于文件名前缀(默认空)
Returns:
成功返回 "OK: <bytes> bytes",失败返回 "FAIL: <error>"
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pmid | No | ||
| pmcid | Yes | ||
| output_dir | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |