Create Document From Markdown
create_doc_from_markdownCreates a new AFFiNE document by importing Markdown as native blocks, including equations, and can embed it under a parent doc or place it in a folder.
Instructions
Create a new AFFiNE document and import Markdown as native blocks, including $$...$$ equation blocks and $...$ inline equations. Use parentDocId to embed the new doc into a parent, or folderId to place it in an organize folder.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| title | No | ||
| strict | No | ||
| folderId | No | Optional folder ID to place the doc in. Use list_organize_nodes to find folder IDs. | |
| markdown | Yes | Markdown content to import | |
| parentDocId | No | If provided, the new doc is automatically embedded into this parent doc as a linked child (visible in sidebar). | |
| workspaceId | No | AFFiNE workspace id. Omit only when AFFINE_WORKSPACE_ID is configured. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | No | ||
| code | No | ||
| kind | No | ||
| docId | No | ||
| error | No | ||
| lossy | No | ||
| stage | No | ||
| stats | No | ||
| title | No | ||
| status | No | ||
| details | No | ||
| folderId | No | ||
| warnings | No | ||
| causeCode | No | ||
| retryable | No | ||
| parentDocId | No | ||
| workspaceId | No | ||
| folderLinked | No | ||
| folderNodeId | No | ||
| linkedToParent | No | ||
| contentPersisted | No | ||
| recoveryGuidance | No | ||
| metadataPersisted | No | ||
| requiresManualRepair | No |