roam_search_hierarchy
Find parent or child blocks in Roam Research's hierarchy by searching up or down from a specific block to navigate connections.
Instructions
Search for parent or child blocks in the block hierarchy. Can search up or down the hierarchy from a given block.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| parent_uid | No | Optional: UID of the block to find children of | |
| child_uid | No | Optional: UID of the block to find parents of | |
| page_title_uid | No | Optional: Title or UID of the page to search in (UID is preferred for accuracy). | |
| max_depth | No | Optional: How many levels deep to search (default: 1) | |
| 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. |