create_document
Create new documents in a specified collection for knowledge bases, guides, or notes. Add content via markdown, nest under parent documents, and publish immediately or save 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
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 |
|---|---|---|---|
| collection_id | Yes | ||
| parent_document_id | No | ||
| publish | No | ||
| text | No | ||
| title | Yes |