remove_chapter
Eliminate specific chapters from knowledge documents to remove outdated, redundant, or incorrect content. Preserves document integrity by precisely targeting and permanently deleting specified sections while retaining the rest of the structure. Verify chapter titles carefully before removal.
Instructions
Remove a specific chapter from a knowledge document.
When to use this tool:
- Removing outdated or incorrect chapters
- Consolidating overlapping content
- Streamlining document structure
- Eliminating redundant information
Key features:
- Precise chapter removal
- Preserves all other chapters
- Maintains document integrity
You should:
- Verify chapter exists with exact title
- Consider if content should be preserved
- Check for references from other chapters
- Use case-sensitive chapter title
- Understand removal is permanent
DO NOT use when:
- Chapter should be updated instead
- Content is still relevant
- Unsure about the impact
Returns: {success: bool, message?: str, error?: str}
Input Schema
Name | Required | Description | Default |
---|---|---|---|
chapter_title | Yes | Exact title of the chapter to remove | |
filename | Yes | Knowledge file name (must include .md extension) | |
project_id | Yes | The project identifier |