Replace Document With Markdown
replace_doc_with_markdownReplace a document's main note content with Markdown text. This overwrites the existing content with the provided Markdown.
Instructions
Replace the main note content of a document with markdown content.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| docId | Yes | AFFiNE document id. | |
| strict | No | ||
| markdown | Yes | Markdown content to replace with | |
| allowEmpty | No | Set true to explicitly allow clearing the main note when Markdown produces no blocks. | |
| 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 | ||
| replaced | Yes | ||
| warnings | Yes | ||
| workspaceId | Yes |