Create Document From Markdown
create_doc_from_markdownCreate a new AFFiNE document from Markdown content, with optional embedding into a parent document for sidebar visibility.
Instructions
Create a new AFFiNE document and import markdown content. Use parentDocId to automatically embed the new doc into a parent, making it visible in the sidebar instead of being an orphan.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| title | No | ||
| strict | No | ||
| 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 | Yes | ||
| kind | Yes | ||
| docId | Yes | ||
| lossy | Yes | ||
| stats | Yes | ||
| title | Yes | ||
| warnings | Yes | ||
| parentDocId | Yes | ||
| workspaceId | Yes | ||
| linkedToParent | Yes |