create_document
Create a new document in a specified collection. Supports setting title, text content, parent document, publish status, template, and icon.
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
- Create a reusable template document
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 in
text: Optional markdown content for the document
parent_document_id: Optional parent document ID
for nesting
publish: Whether to publish immediately (True)
or save as draft (False)
template: If True, creates the document as a
template
icon: Optional emoji character to use as the
document icon (e.g. "📋", "🚀"). If None,
no icon is set.
Returns:
Result message with the new document ID
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| icon | No | ||
| text | No | ||
| title | Yes | ||
| publish | No | ||
| template | No | ||
| collection_id | Yes | ||
| parent_document_id | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |