update_chapter
Modify a specific chapter in a knowledge document while preserving its structure. Update content, add clarifications, or refresh outdated sections without altering other chapters. Ideal for targeted edits in project documentation.
Instructions
Update a specific chapter within a knowledge document efficiently.
When to use this tool:
Correcting information in a specific chapter
Expanding chapter with new content
Updating code examples or commands
Refreshing outdated chapter content
Adding clarifications or improvements
Key features:
Preserves all other chapters intact
Maintains document structure
Updates chapter summary for search
Efficient partial document update
You should:
Use exact chapter title (case-sensitive match)
Read current chapter first if needed
Preserve chapter's role in document flow
Update summary if content focus changes
Keep consistent formatting with other chapters
Consider impact on related chapters
Include .md extension in filename
DO NOT use when:
Chapter doesn't exist (use add_chapter)
Need to update multiple chapters
Restructuring entire document
Returns: {success: bool, message?: str, error?: str}
Input Schema
Name | Required | Description | Default |
---|---|---|---|
chapter_title | Yes | Exact title of the chapter to update (case-sensitive) | |
filename | Yes | Knowledge file name (must include .md extension) | |
new_content | Yes | New content for the chapter (without ## heading) | |
new_summary | No | Optional chapter summary for search results | |
project_id | Yes | The project identifier |