Insert block
insert_blockAppend Markdown content as new blocks inside a parent block or document, or directly after a specified block, to add notes in SiYuan via MCP.
Instructions
Append Markdown as new blocks. With parent_id the content is appended inside that block (use a document ID to append to a document); with previous_id it is inserted directly after that block. Provide exactly one of them.
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": {
"data": "<data>"
},
"name": "insert_block"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | Markdown content to insert. | |
| parent_id | No | Parent block/document ID to append into. | |
| previous_id | No | Insert immediately after this block ID. |