create_document
Create a document or subdocument in a SiYuan notebook from Markdown and get its block ID, which serves as the parent ID for embedding databases inside that doc.
Instructions
Create a document (or subdocument) in a notebook. Use nested path for subdocuments: path:"/Parent/Child". Returns the document block ID — use it as parentDocId in create_database to embed a DB inside this doc.
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": {
"notebook": "<notebook>",
"path": "<path>",
"title": "<title>"
},
"name": "create_document"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Document path (e.g. "/My Doc" or "/Parent/Child") | |
| title | Yes | Document title | |
| content | No | Markdown content (optional) | |
| notebook | Yes | Notebook ID |