SiYuan Block Tool icon

SiYuan Block Tool

Use this tool to create, read, update, move, and delete content blocks within SiYuan documents. Use "append" to add content to a document, "getContentMd" to read a block, or "update" to modify existing content.

Update

AI-generated

Summary

Update the Markdown content of an existing block by specifying its unique block ID and the new Markdown content to replace the current content.

Inputs

  • Block ID (required) — The unique ID of the block to update.
  • Content (Markdown) (required) — The new Markdown content to set for the block.

Output shape

a single JSON object indicating success or details of the updated block

If successful, the operation returns the response from the SiYuan API's updateBlock method. Errors will be returned as node execution errors or error objects if continueOnFail is enabled.

Links

Discussion