get_next_chapter
Retrieve the next chapter in a document sequence for continuous reading or pagination. Maintains context and checks for end-of-document. Use current chapter title or index for accurate progression.
Instructions
Get the next chapter after the current one in sequence.
When to use this tool:
- Reading document sequentially
- Continuing from current position
- Implementing pagination through document
- Following document flow naturally
Key features:
- Automatic progression to next chapter
- Returns null if at end
- Maintains reading context
- Efficient sequential access
You should:
- Use current_chapter_title OR current_index
- Check has_next before calling
- Use for sequential document traversal
- Handle end-of-document gracefully
- Consider document flow and continuity
DO NOT use when:
- Need specific non-sequential chapter
- At the last chapter already
- Random access is needed
Returns: {success: bool, title?: str, content?: str, summary?: str, index?: int, total_chapters: int, has_next: bool}
Input Schema
Name | Required | Description | Default |
---|---|---|---|
current_chapter_title | No | Title of the current chapter (use this OR current_index) | |
current_index | No | Zero-based index of current chapter (use this OR current_chapter_title) | |
filename | Yes | Knowledge file name (must include .md extension) | |
project_id | Yes | The project identifier |