Read a range of pages
shamela_get_pages_rangeجلب نطاق صفحات
Fetch N (1–20, default 5) consecutive pages from a downloaded book starting at start_page_id. Faster than calling shamela_get_page in a loop. Each page entry has page_id, printed_page, part, body, foot, comment. has_more flag indicates whether more pages exist after the returned range. Very long ranges are cut short to stay within a size budget; when that happens the response sets next_start_page_id and a _display hint — continue from there. For full chapters use shamela_get_book_section instead — it knows where the chapter ends. Example: shamela_get_pages_range({book_id:, start_page_id:1, count:5}). Find downloaded book ids via shamela_list_downloaded_books.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| count | No | How many consecutive pages to fetch (1–20, default 5). Use shamela_get_book_section for full chapter reads. | |
| book_id | Yes | The book id. | |
| keep_html | No | Preserve inline HTML markers. | |
| start_page_id | Yes | First page_id (inclusive). | |
| response_format | No | Output format for the human-readable text. 'markdown' (default) is best for direct display; 'json' returns the same data as a single JSON code block; 'none' skips the rendered text entirely and returns a one-line pointer, leaving `structuredContent` as the whole answer. The structured data is returned in `structuredContent` regardless of this setting, so a caller that parses it should pass 'none' — the character budget is measured over BOTH channels, and the unread copy is otherwise spending most of it. Requires the 'response_format.none' capability (see shamela_brief). | markdown |