search_book
Search a book’s prose to find matching chapters by exact phrase or meaning, returning snippets and character offsets so you can locate passages and follow up by reading the chapter.
Instructions
Search the PROSE of a book and get back the chapters that match, each with a snippet and the character offset of the hit. This is the only way to look inside the manuscript — search_knowledge searches entity RECORDS (names, descriptions), so it cannot answer 'where did I first describe the harbour?'. Two modes. 'text' is exact substring, case-insensitive, and works the same for CJK as for English — use it to find a word, name or phrase you know is there. 'semantic' finds passages that mean something similar without sharing wording, and only sees chapters whose embeddings exist. Follow a hit with get_chapter to read the full passage.
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>",
"query": "<query>"
},
"name": "search_book"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | No | 'text' (default) is exact substring; 'semantic' is meaning-based. | |
| limit | No | Maximum chapters to return. Server default 20, hard cap 50. | |
| query | Yes | What to search for | |
| bookId | Yes | Book ID |