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.

Get Child Blocks

AI-generated

Summary

Lists the direct child blocks of a specified SiYuan block by calling the SiYuan getChildBlocks API. Provide the parent’s Block ID; the operation reads the children and returns the API result for each input item.

Inputs

  • Block ID (required) — The unique ID of the parent block whose direct children to retrieve.

Output shape

The SiYuan API result containing the direct child blocks, returned as JSON for each input item.

The node passes the result through without reshaping it. If the API returns no result, the node outputs {"success":true}. With Continue On Fail enabled, errors are returned as an {"error":...} item.

Examples

Example 1: Fetch a parent block’s direct children

Set Block ID to the target parent block’s SiYuan ID.

Links

Discussion