Create Document From Markdown
create_doc_from_markdownImport markdown to create a new document; optionally embed into a parent 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 |
|---|---|---|---|
| workspaceId | No | ||
| title | No | ||
| markdown | Yes | Markdown content to import | |
| strict | No | ||
| parentDocId | No | If provided, the new doc is automatically embedded into this parent doc as a linked child (visible in sidebar). |