roam_fetch_block
Fetch a block by UID with optional children (depth) and/or ancestors (up to page root).
How to use it
roam_fetch_block is exposed by the Roam Research MCP MCP server. Add the server to your MCP client (Claude Desktop, Cursor, Windsurf and others), and the roam_fetch_block tool becomes available to the model automatically. See the full listing for setup details and every tool this server provides.
Install Roam Research MCP
npx roam-research-mcpOther tools in Roam Research MCP (19)
Add TODO items to today's daily page.
Create hierarchical outlines.
Create new pages, optionally with mixed text and table content.
Create properly formatted Roam tables.
Execute raw Datalog queries for advanced filtering.
Fetch page content by title.
Fetch a page's content plus all linked references with breadcrumb context and children.
List pages modified since midnight.
Retrieve this graph's user-defined agent conventions.
List sub-pages under a namespace prefix (e.g. "Project/") with optional tag filter.
Retrieve the Roam-flavored markdown reference.
Move a block to a new parent or position.
Execute multiple low-level actions (create, move, update, delete) in one batch.
Find blocks that reference a page, tag, or block UID.
Find blocks/pages by creation or modification date.
Find TODO or DONE items.
Full-text search across the graph or within specific pages. Supports namespace prefix search for page titles.
Find blocks containing specific tags (supports exclusion).
Update a page using smart diff (preserves block UIDs).