Download a book
libgen_downloadDownload a Library Genesis file by MD5, verify the downloaded file's integrity, and prevent overwriting existing files unless overwrite is enabled.
Instructions
Download one file by md5. Streams to disk with a size cap, verifies the file against its LibGen md5, and never overwrites an existing file unless overwrite=true. Returns the saved path, byte count and verification result.
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>"
},
"name": "libgen_download"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| md5 | Yes | LibGen md5 of the file (32 hex characters), from a search result. | |
| overwrite | No | Overwrite an existing file instead of adding a numeric suffix. | |
| verifyMd5 | No | Verify the downloaded file's MD5. Defaults to true. | |
| downloadDir | No | Directory to save into. Defaults to LIBGEN_DOWNLOAD_DIR or the process cwd. |