Create Document From Markdown
create_doc_from_markdownCreate a new AFFiNE document by importing markdown content. Optionally embed it into a parent document to make it visible in the sidebar.
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.
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": {
"markdown": "<markdown>"
},
"name": "create_doc_from_markdown"
}
}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. |