Cyberlibrary Get Chunks
cyberlibrary_get_chunksStable paragraph-level chunks for one book, each with a permanent chunk_id (lang:slug:chapter:para), citation text and canonical URL. When to use: you need RAG-ready passages with deterministic IDs instead of whole chapters, or you want to cache/index exact passages. Do not use: to read a whole chapter (cyberlibrary_get_chapter) or to search across books (cyberlibrary_verify_quote / cyberlibrary_fulltext_search). Returns: {lang, slug, title, license, corpus_version, total_chunks, chunks[{chunk_id, chapter, para, text, citation, url}]}.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lang | Yes | Language code, e.g. zh-cn, en. | |
| slug | Yes | Book slug from the catalog. | |
| limit | No | Chunks to return (1-100). Default 50. | |
| start | No | 1-based chunk offset. Default 1. | |
| chapter | No | Optional chapter number; omit for the whole book. | |
| max_chars | No | Per-chunk character cap (200-8000). Default 2000. |