create_doc
Create a new AFFiNE document from Markdown, optionally placing it in a chosen folder or workspace.
Instructions
New doc from Markdown, optionally inside a folder
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": {
"title": "<title>"
},
"name": "create_doc"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| title | Yes | ||
| folder | No | Folder id or name | |
| markdown | No | Body as Markdown, without the title | |
| workspace | No | Workspace id or name, leave out for the default workspace |