download_book
Downloads a book file to a local directory using its MD5 hash, trying direct Libgen and IPFS links and saving the first file found. Returns the saved path or the full link list.
Instructions
Download a book file to a local directory by MD5. Tries direct links (Libgen/IPFS) in order and saves the first that yields a file. Returns the saved path, or the full link list if no direct download succeeds.
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": {
"md5": "<md5>",
"output_dir": "<output_dir>"
},
"name": "download_book"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| md5 | Yes | ||
| filename | No | Optional filename; defaults to <md5>.<ext>. | |
| output_dir | Yes | Absolute path to an existing or creatable directory. |