Download article
article_downloadDownload a paper by DOI or MD5 hash and save it to the configured download path, returning the file path and byte count. Optional title and format set the filename.
Instructions
Download a selected paper by exactly one of doi or hash. Saves the file under ANNAS_DOWNLOAD_PATH and returns path and bytes. Optional title and format control its filename.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| doi | No | DOI, doi: identifier, or https://doi.org/ URL. Supply exactly one of doi or hash | |
| hash | No | 32-character MD5 hash from search. Supply exactly one of doi or hash | |
| title | No | Optional title override for the saved filename | |
| format | No | Optional filename extension such as pdf. 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 |