Get chapter text
get_chapter_contentReturn a chapter's plain-text content from an Apple Books EPUB, paginated to fit context limits. Specify book ID and optional chapter ID to fetch a specific or the current chapter.
Instructions
Return the plain-text content of a chapter, paginated by default
to protect the context window. Get chapter_id from
list_book_chapters or from the (ch=...) suffix on
annotation listing rows, or pass "current" (the default) for
the chapter the user is reading in Apple Books. Works for non-DRM
EPUBs downloaded to this Mac.
Default max_chars=10000 (~2500 words) fits most chapters in
one call. Longer chapters return a slice with a footer naming
the exact offset to pass next. At most 50000 chars are
returned per call.
Every response ends with a footer like one of::
(full chapter returned: 4,872 chars.)
…(returned chars 0–10000 of 24,311 [10000 chars]. Call again with
offset=10000 to continue; 14,311 chars remaining.)
(returned chars 20000–24311 of 24311 [4311 chars]. End of chapter.)Args:
book_id: The book's numeric ID.
chapter_id: Chapter identifier, the 1-based chapter order as a
string (e.g. "5"), or "current" (the default): the
chapter of the user's reading position. A chapter whose id
is literally "current" wins.
offset: Character offset to start from. Defaults to 0.
max_chars: Max chars to return (1–50000). Default 10000.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| offset | No | ||
| book_id | Yes | ||
| max_chars | No | ||
| chapter_id | No | current |