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>"
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": {
"pmcid": "<pmcid>",
"output_dir": "<output_dir>"
},
"name": "download_single_pdf"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pmid | No | ||
| pmcid | Yes | ||
| output_dir | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |