Create Document
create_docCreate a new document in an AFFiNE workspace with optional content, and link it to a parent document or folder for sidebar organization.
Instructions
Create a new AFFiNE document with optional content. If parentDocId is provided, the new doc is linked into the sidebar tree immediately. If folderId is provided, the doc is placed inside that folder in the sidebar.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| title | No | Optional initial document title. | |
| content | No | Optional initial plain text or markdown-like content. | |
| folderId | No | Optional folder ID to place the doc in. Use list_organize_nodes to find folder IDs. | |
| parentDocId | No | Optional parent doc to link the new doc under in the sidebar. | |
| workspaceId | No | AFFiNE workspace id. Omit only when AFFINE_WORKSPACE_ID is configured. |