Search book content
search_book_contentSearch for specific text within a book using its Calibre ID. Returns matches with surrounding context, with plain-text fallback when full-text search is unavailable.
Instructions
Search for text within a specific book's content. Plain-text fallback when Calibre FTS is not available. Extracts the book to text and searches for matches with surrounding context.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | Text to search for within the book content. Case-insensitive. | |
| bookId | Yes | Calibre book ID to search within. | |
| maxMatches | No | Maximum number of matches to return (default: 10, max: 20). | |
| contextChars | No | Characters of context to show around each match (default: 150). |