search_in_book
Search inside a Calibre ebook library and get matching text snippets for quoting. Narrow by book ID and limit results; ensure the library index is built first.
Instructions
Full-text search inside book contents, with match snippets for quoting.
Searches the local text index; books must be indexed first with build_index (a one-time, cached step). Matching is substring-based, so Chinese and English queries both work without word segmentation.
Args: query: Text to find inside book contents. book_id: Optional book id to restrict the search to a single book. limit: Maximum number of matches to return (1-100, default 20).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | ||
| query | Yes | ||
| book_id | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||