insert_block
Insert a markdown block into a SiYuan document or container block, optionally after a specified sibling, to add content at a precise position.
Instructions
Insert a markdown block into a document. To embed an existing database, use:
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": {
"content": "<content>",
"parentID": "<parentID>"
},
"name": "insert_block"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| content | Yes | Markdown content | |
| parentID | Yes | Parent block ID (the document or container block) | |
| previousID | No | Insert after this sibling block ID (optional) |