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.

Move

AI-generated

Summary

Moves a SiYuan block to a new position using its block ID. Optionally place it after a sibling block, under a parent block, or specify both; each non-empty position value is sent to SiYuan.

Inputs

  • Block ID (required) — Unique ID of the block to move.
  • Move After Block ID — Sibling block ID to place the moved block after. Leave empty to omit this position parameter.
  • Move Under Parent ID — Parent block ID to place the moved block under. Leave empty to omit this parent parameter.

Output shape

One output item per input item, containing the SiYuan move API result; if the result is null, the node outputs {"success":true}.

The move changes the block's position in SiYuan. With Continue On Fail enabled, an item that errors instead returns {"error":"…"}.

Links

Discussion