Import a book
import_bookImport a book from file path or raw text, split it into chapters and size-bounded chunks, and register it for chunked co-reading. Preserves EPUB chapter boundaries.
Instructions
Import a book by file path (.txt or .epub) or raw text, split it into chapters and size-bounded chunks, and register it for chunked reading. EPUB chapter boundaries (spine order) are preserved.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "import_book"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| title | No | Book title; defaults to the EPUB's own title when importing an EPUB | |
| filePath | No | Absolute path to a .txt or .epub file to import | |
| text | No | Raw plain-text book content, used if filePath is not given |