Get Next Chapter
get_next_chapterRetrieve 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}
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"project_id": "<project_id>",
"filename": "<filename>"
},
"name": "get_next_chapter"
}
}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 |