roam_search_block_refs
Find where a block or page is referenced in Roam Research. Search a single page or the entire graph by block UID or page title to trace connections and backlinks.
Instructions
Search for block references within a page or across the entire graph. Can search for references to a specific block, a page title, or find all block references.
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. | |
| title | No | Optional: Page title to find references to (uses :block/refs for [[page]] and #tag links) | |
| block_uid | No | Optional: UID of the block to find references to (searches for ((uid)) patterns in text) | |
| write_key | No | Write confirmation key. Required for write operations on non-default graphs when write_key is configured. | |
| page_title_uid | No | Optional: Title or UID of the page to search in (UID is preferred for accuracy). If not provided, searches across all pages. |