add_document
Create a new document in a workspace, optionally in a folder. Use it for notes or guides—not tasklist tasks; slides and canvases require guide calls and specific title suffixes.
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_guide. The title MUST end with ".slides.md" (e.g., "My Presentation.slides.md"). FOR CANVAS: Before creating a canvas, call get_canvas_guide. The title MUST end with ".canvas.md" (e.g., "Architecture Diagram.canvas.md"). Do NOT provide content for canvas files — the system generates it.
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 canvas, end with ".canvas.md" (e.g., "Diagram.canvas.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) | |
| workspace | Yes | Workspace path/name |