Get Child Blocks
AI-generatedSummary
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.