Skip to main content
Glama

roam_fetch_block_with_children

Retrieve a Roam Research block and its nested child blocks by specifying a UID and depth to access hierarchical content structure.

Instructions

Fetch a block by its UID along with its hierarchical children down to a specified depth. Returns a nested object structure containing the block's UID, text, order, and an array of its children.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
block_uidYesThe UID of the block to fetch.
depthNoOptional: The number of levels deep to fetch children. Defaults to 4.
graphNoTarget graph key from ROAM_GRAPHS config. Defaults to ROAM_DEFAULT_GRAPH. Only needed in multi-graph mode.
write_keyNoWrite confirmation key. Required for write operations on non-default graphs when write_key is configured.

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/2b3pro/roam-research-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server