Fetch book excerpt
fetch_excerptRetrieve a short text excerpt from a book's content to preview its writing style and confirm the correct book.
Instructions
Fetch a short text excerpt from a book's content. Extracts the beginning of a book to preview its content. Useful for checking writing style, confirming the right book, or getting a taste of the content.
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": {
"bookId": "<bookId>"
},
"name": "fetch_excerpt"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bookId | Yes | Calibre book ID to fetch excerpt from. | |
| format | No | Preferred format to extract from. If not specified, uses the first available format. | |
| maxChars | No | Maximum characters to return (default: 2000, max: 10000). Keeps excerpts brief. |