get_chapter
Retrieve specific chapter content by title or index for efficient document access. Ideal for targeted reading, updating chapters, or navigating large files without loading the entire document. Includes summary and navigation details.
Instructions
Retrieve a single chapter's content by title or index.
When to use this tool:
- Reading specific chapter content
- Reviewing targeted information
- Updating specific chapter (read first)
- Accessing chapter without loading entire document
- Efficient partial document access
Key features:
- Access by title OR index (0-based)
- Returns navigation info (has_next, has_previous)
- Memory-efficient for large documents
- Includes chapter summary
You should:
- Use chapter_title for known chapters
- Use chapter_index for sequential reading
- Specify either title OR index, not both
- Use exact title match (case-sensitive)
- Consider using get_next_chapter for sequences
- Cache results if accessing multiple times
DO NOT use when:
- Need multiple chapters (batch operations)
- Don't know chapter title or index
- Need full document context
Returns: {success: bool, title: str, content: str, summary: str, index: int, total_chapters: int, has_next: bool, has_previous: bool}
Input Schema
Name | Required | Description | Default |
---|---|---|---|
chapter_index | No | Zero-based index of the chapter (use this OR chapter_title) | |
chapter_title | No | Title of the chapter to retrieve (use this OR chapter_index) | |
filename | Yes | Knowledge file name (must include .md extension) | |
project_id | Yes | The project identifier |