write_doc
Write Markdown into an AFFiNE doc using append or replace mode; replace rewrites the body while preserving board and image markers from read_doc.
Instructions
Write Markdown into a doc. mode "append" adds at the end, "replace" rewrites the body (keep the markers from read_doc to keep boards and images)
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": {
"doc": "<doc>",
"markdown": "<markdown>",
"mode": "<mode>"
},
"name": "write_doc"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| doc | Yes | Doc id or title | |
| mode | Yes | ||
| title | No | New title, leave out to keep it | |
| markdown | Yes | ||
| workspace | No | Workspace id or name, leave out for the default workspace |