Get block
get_blockRead a SiYuan block by ID to retrieve its source or list direct child blocks. Use kramdown format to inspect block attributes and locate nested blocks for editing.
Instructions
Read one block by ID. kramdown returns the source including block attributes (IDs, made useful for locating nested blocks to edit); children lists direct child blocks.
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": {
"id": "<id>"
},
"name": "get_block"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Block ID. | |
| format | No | `kramdown` (default) returns source; `children` returns direct child blocks. |