roam_search_hierarchy
Search up or down the block hierarchy to locate parent or child blocks from a given block.
Instructions
Search for parent or child blocks in the block hierarchy. Can search up or down the hierarchy from a given block.
IMPORTANT: call roam_get_guidelines for this graph once per session before using this tool, reads included — conventions change how results are read, not just written.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| graph | No | Target graph key from ROAM_GRAPHS config. Defaults to ROAM_DEFAULT_GRAPH. Only needed in multi-graph mode. | |
| child_uid | No | Optional: UID of the block to find parents of | |
| max_depth | No | Optional: How many levels deep to search (default: 1) | |
| write_key | No | Write confirmation key. Required for write operations on non-default graphs when write_key is configured. | |
| parent_uid | No | Optional: UID of the block to find children of | |
| page_title_uid | No | Optional: Title or UID of the page to search in (UID is preferred for accuracy). |