create_document
Add new content to a knowledge base by creating a document in a specified collection. Supports markdown content, nesting under a parent document, and immediate publishing or saving as draft.
Instructions
Creates a new document in a specified collection.
Use this tool when you need to:
Add new content to a knowledge base
Create documentation, guides, or notes
Add a child document to an existing parent
Start a new document thread or topic
Note: For Mermaid diagrams, use mermaidjs (not mermaid)
as the code fence language identifier for proper rendering.
Args: title: The document title collection_id: The collection ID to create the document in text: Optional markdown content for the document parent_document_id: Optional parent document ID for nesting publish: Whether to publish the document immediately (True) or save as draft (False)
Returns: Result message with the new document ID
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| title | Yes | ||
| collection_id | Yes | ||
| text | No | ||
| parent_document_id | No | ||
| publish | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |