get_chapters
Retrieve chapter text from a book using a chapter number spec or token budget. Provide either 'spec' (e.g., 1-3,5) or 'budget'; defaults to 12,000 tokens when neither is given.
Instructions
Chapter text of a book: by chapter numbers (spec, e.g. "1-3,5") or by token budget (budget). If neither spec nor budget is given, the default budget of 12000 tokens is used. Passing both parameters at once is an error. If even the first chapter doesn't fit the budget, an empty text with an explanation in message is returned instead of an error — retry with a larger budget or use spec.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| spec | No | ||
| from_ | No | ||
| budget | No | ||
| book_id | Yes |