add_document
Create new documents in a workspace or folder with optional markdown content, tags, emoji, and AI metadata; slide and moodboard files need their required extensions.
Instructions
Create a new document in a workspace, optionally in a specific folder. NOTE: Do NOT use this for tasks in tasklists - use add_task instead. FOR SLIDES: IMPORTANT - Before creating a slide presentation, you MUST first call get_slides_story_guide. The title MUST end with ".slides.md" (e.g., "My Presentation.slides.md"). FOR MOODBOARDS: Before creating a moodboard, call get_moodboard_guide. The title MUST end with ".moodboard.md" (e.g., "Brand Inspiration.moodboard.md"). Do NOT provide content for moodboard files — the system writes the empty board; add items with add_moodboard_items.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"workspace": "<workspace>",
"title": "<title>"
},
"name": "add_document"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tags | No | Document tags | |
| emoji | No | Emoji to display next to the document in the sidebar (e.g., "📄", "📝", "💡", "🔍", "📚", "🎯") | |
| title | Yes | Document title. For slides, end with ".slides.md". For moodboards, end with ".moodboard.md" (e.g., "Inspiration.moodboard.md"). The system sanitizes the title into a filename. | |
| aiNote | No | Note about the creation of this document | |
| folder | No | Folder path within documents directory (e.g., "projects/2024" or "notes"). Creates folder if it doesn't exist. | |
| aiModel | No | AI model that created this document (e.g., "Claude 3.5 Sonnet") | |
| content | No | Document content (markdown). Omit for moodboard files — their content is generated and any value supplied is ignored. | |
| workspace | Yes | Workspace path/name |