Download book
book_downloadDownload a book by MD5 hash or Anna's Archive /md5/ URL; reuse a matching local file or save a verified copy, returning its path and size.
Instructions
Download the selected book using its MD5 hash or Anna's Archive /md5/ page URL in hash. Returns an existing file in ANNAS_DOWNLOAD_PATH if its full MD5 matches, otherwise downloads a verified copy under a unique name. Returns path and bytes; downloads_left is omitted on local reuse. Format sets the extension; it does not convert the file.
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": {
"hash": "<hash>",
"title": "<title>"
},
"name": "book_download"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| hash | Yes | 32-character MD5 hash or Anna's Archive /md5/ page URL | |
| title | Yes | Book title used for the filename | |
| format | No | Optional filename extension such as pdf or epub. Inferred when omitted; does not convert the file | |
| timeout_seconds | No | Total operation timeout in seconds, including retries. Defaults to 1800; maximum 86400 |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| bytes | Yes | ||
| downloads_left | No |