add_chapter
Insert or append a new chapter to a knowledge document, specifying title, content, and position relative to an existing chapter. Ensures unique chapter titles for organized project knowledge management.
Instructions
Add a new chapter to a knowledge document. The chapter can be positioned at the end, or before/after a reference chapter. Chapter title must not already exist in the document. Returns: {success: bool, message?: str, error?: str}
Input Schema
Name | Required | Description | Default |
---|---|---|---|
chapter_title | Yes | Title for the new chapter | |
content | Yes | Content for the new chapter | |
filename | Yes | Knowledge file name (must include .md extension) | |
position | No | Where to insert the chapter (default: "end") | |
project_id | Yes | The project identifier | |
reference_chapter | No | The chapter title to use as reference point for before/after positioning |