roam_fetch_block_with_children
Retrieve a Roam Research block and its nested child blocks by specifying a UID and depth to access hierarchical content structure.
Instructions
Fetch a block by its UID along with its hierarchical children down to a specified depth. Returns a nested object structure containing the block's UID, text, order, and an array of its children.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| block_uid | Yes | The UID of the block to fetch. | |
| depth | No | Optional: The number of levels deep to fetch children. Defaults to 4. | |
| graph | No | Target graph key from ROAM_GRAPHS config. Defaults to ROAM_DEFAULT_GRAPH. Only needed in multi-graph mode. | |
| write_key | No | Write confirmation key. Required for write operations on non-default graphs when write_key is configured. |