SiYuan icon

SiYuan

Manage SiYuan notebooks, documents, blocks, attributes, and more. Designed for AI agent workflows.

Block → Get Child Blocks

AI-generated

Summary

Retrieves the direct child blocks of a SiYuan block using its ID. Use this to inspect a document or container block’s immediate contents; deeper descendants are not fetched by this operation.

Inputs

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

Output shape

A list of child block records returned by the SiYuan API.

The operation passes the Block ID to SiYuan’s getChildBlocks endpoint and returns its data without reshaping it. It includes direct children only.

Links

Discussion