Download a cover image URL to disk
audiobook_fetch_cover_imageDownloads a cover image from a URL, saves it as a sanitized title-author JPG in the target folder, and reports the real pixel dimensions and file size.
Instructions
Download a specific cover image URL (typically one from
audiobook_lookup_book_metadata's covers array -- pick by measured
width/height, not source order or URL) to out_dir, and report its
real decoded pixel dimensions. Saved as
"_.jpg" (or without the author
suffix if none given), matching the source skill's naming convention.
Args: params (FetchCoverImageInput): - cover_url (str): the image URL to download. - out_dir (str): destination directory (created if missing). - title/author (str): used to build the filename. - overwrite (bool): default False errors instead of clobbering an existing file with the same name.
Returns: str: JSON {"path": str, "width": int|null, "height": int|null, "bytes": int} or {"error": ...} on failure.
Error Handling: - Errors (not overwrites) if a file with the computed name already exists and overwrite=False. - Network failures surface with the underlying reason.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| params | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |