Roam Research

roam_search_hierarchy

Search for parent or child blocks in the block hierarchy. Can search up or down the hierarchy from a given block.

Input Schema

NameRequiredDescriptionDefault
child_uidNoOptional: UID of the block to find parents of
max_depthNoOptional: How many levels deep to search (default: 1)
page_title_uidNoOptional: Title or UID of the page to search in
parent_uidNoOptional: UID of the block to find children of

Input Schema (JSON Schema)

{ "oneOf": [ { "required": [ "parent_uid" ] }, { "required": [ "child_uid" ] } ], "properties": { "child_uid": { "description": "Optional: UID of the block to find parents of", "type": "string" }, "max_depth": { "description": "Optional: How many levels deep to search (default: 1)", "maximum": 10, "minimum": 1, "type": "integer" }, "page_title_uid": { "description": "Optional: Title or UID of the page to search in", "type": "string" }, "parent_uid": { "description": "Optional: UID of the block to find children of", "type": "string" } }, "type": "object" }