--- title: Handle Pagination description: Work with documents that exceed token limits. --- import { Aside } from '@astrojs/starlight/components'; > *"Yeah, I'm gonna need you to go ahead and come in on Saturday for page 2..."* Documents over 25,000 tokens are automatically paginated. Use cursors to fetch subsequent pages. ```json { "text": "Chapter 1...", "pagination": { "current_page": 1, "total_pages": 5, "cursor_id": "abc123" } } ``` Continue with: ``` Continue extraction with cursor abc123 ```