roam_fetch_page_by_title
Fetch a Roam Research page by title and retrieve its content in markdown, raw JSON, or structured format for locating blocks to edit.
Instructions
Fetch page by title. Returns content in the specified format.
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 | Yes | Title of the page. For date pages, use ordinal date formats such as January 2nd, 2025 | |
| format | No | Format output as markdown, JSON, or structure. 'markdown' returns readable string; 'raw' returns full JSON with nested blocks; 'structure' returns a flattened list (uid, order, text, depth, parent_uid) for locating blocks to update. In 'structure', `text` is a PREVIEW cut at 80 characters — an entry marked `truncated: true` is a fragment, and writing it back would replace the block with its own opening. Use it to find the uid, then fetch that block with roam_fetch_block before editing its text. | raw |
| write_key | No | Write confirmation key. Required for write operations on non-default graphs when write_key is configured. |