update_block
Replace the content of a specific block in a SiYuan knowledge base; provide the block ID and new markdown or DOM data for a complete overwrite, avoiding unintended edits.
Instructions
更新块内容。
适用场景: - 已知块 ID 时,直接替换该块内容。
使用方法: - block_id: 目标块 ID。 - data_type: 仅支持 markdown 或 dom。 - data: 新内容。
注意事项: - 这是整块替换,不是局部 patch。 - 修改前请确保 block_id 指向正确块,避免误改。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | ||
| block_id | Yes | ||
| data_type | No | markdown |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |