Get a book cover
get_coverRetrieve a book's cover image by its numeric ID. Returns the image directly; files over 1 MB are refused to protect context—use the coverUrl from the book entry for full-size covers.
Instructions
Fetches the cover of a book and returns it as an image. Book ids come from the other tools (books with id null have no cover). Calibre-Web serves the full-size cover; images over 1 MB are refused to protect the context window — use the coverUrl from the book entry instead.
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": {
"book_id": "<book_id>"
},
"name": "get_cover"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| book_id | Yes | Numeric book id from search_books, list_books or get_shelf_books |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bytes | Yes | Size of the decoded image. | |
| bookId | Yes | ||
| mimeType | Yes | Of the image in the content block. |