RoadRaven
v0.9.2Create and update roadmap tree nodes and statuses in the RoadRaven desktop app (must be running).
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
updateNodeStatus Update RoadRaven node status
Push a status update to a node. Requires the desktop app to be running and a roadmap loaded. Routes through the agent dispatcher so the change appears in the event-log drawer (Ctrl+Shift+L).
| Parameter | Type | Description |
|---|---|---|
nodeId * | string | The node UUID from the roadmap |
status * | string | Core node status |
expectedRevision | integer | Revision from your last getRoadmap/getNode read. If the roadmap changed since, the write fails with stale_write instead of clobbering. |
meta | object | Arbitrary key-value metadata, e.g. { branch, commit, ci_run_id } |
getEventApiStatus Check RoadRaven Event API
Returns the current Event API URL, PID, and startedAt — or an error if the app is not running.
getRoadmap Get the loaded RoadRaven roadmap
Return the full schema tree from the desktop app, with live-event statuses merged in, plus the current `revision` (pass it as expectedRevision on writes to detect stale reads). Long roadmaps can exceed the tool-result limit, so trim the answer: for a long roadmap or for polling, pass omitNotes: true and hideCompleted: true; to read one phase, pass rootId (that node's id) and depth. A stub is one line { id, title, status, type, childCount } standing in for a node whose children are left out; read those children with rootId set to the stub's id. Notes can also be fetched with getNode/findNodes.…
| Parameter | Type | Description |
|---|---|---|
depth | integer | Levels of children to keep below the top nodes (the rootId node, else the top-level nodes); the next level comes back as stubs. 0 = the top nodes only, their children as stubs. |
hideCompleted | boolean | Show a node as a stub when it and everything under it is completed. A completed node with any open descendant stays in full. |
omitNotes | boolean | Leave out notes and the createdAt/updatedAt timestamps. |
rootId | string | Answer only this node and its subtree; the answer adds rootId and ancestorIds (root-to-parent). An unknown id gives node_not_found. |
getNode Get a single RoadRaven node
Return a node by UUID, with its immediate parent ID, full ancestor chain (root-to-parent), and the current roadmap `revision`. Status reflects the live overlay if a recent event landed.
| Parameter | Type | Description |
|---|---|---|
nodeId * | string | ID of the target node |
findNodes Find RoadRaven nodes by structured filter
Search nodes by AND-combined filter: titleContains (case-insensitive substring), status (one status, or a list of statuses to get e.g. all open work in one call), type, metaKey + metaValue, parentId. All fields optional. Set omitNotes for a short list without notes and timestamps. Returns matching nodes (without their children; use parentId or getNode for those) with their parent IDs.
| Parameter | Type | Description |
|---|---|---|
metaKey | string | |
metaValue | ||
omitNotes | boolean | Leave out notes and the createdAt/updatedAt timestamps |
parentId | string | |
status | One status, or a list of statuses to match any of (e.g. ["in-progress", "blocked"] for open work) | |
titleContains | string | Case-insensitive substring against node.title |
type | string |
getStatusConfig Get RoadRaven status configuration
Return the loaded roadmap's statusConfig array (display labels/colors for statuses). Agent mutations accept only core node statuses.
getTypeConfig Get RoadRaven type configuration
Return the loaded roadmap's typeConfig array (the valid node-type IDs and their visual configuration).
getOpenFile Get the currently open RoadRaven file
Return filePath (or null if untitled), isUntitled flag, document title, and total nodeCount. Works even when no file is loaded — returns null filePath and isUntitled=false.
createNode Create a new RoadRaven node
Add a child node under parentId with the given title. Optional: id (UUID or slug — supply it when recovering/recreating a node so its identity stays stable and history/metadata continuity survives file churn; duplicate_id if it already exists), type, core status (defaults to not-started), notes (markdown), metadata. Returns the new node's id. Requires a loaded roadmap.
| Parameter | Type | Description |
|---|---|---|
parentId * | string | ID of the parent node |
title * | string | Node title |
expectedRevision | integer | Revision from your last getRoadmap/getNode read. If the roadmap changed since, the write fails with stale_write instead of clobbering. |
id | string | Optional caller-supplied node id (UUID or slug ^[A-Za-z0-9][A-Za-z0-9._-]{0,63}$). Use when recreating a node so its identity stays stable and history/metadata continuity survives file churn. Fails wi… |
metadata | object | |
notes | string | |
status | string | Core node status — defaults to not-started |
type | string | Node type id |
createRoadmap Create a new RoadRaven roadmap
Initialize an in-memory untitled schema (mirrors File > New). Optional: title, statusConfig, typeConfig. The agent must call saveFileAs to persist the new roadmap to disk.
| Parameter | Type | Description |
|---|---|---|
statusConfig | array | |
title | string | |
typeConfig | array |
renameNode Rename a RoadRaven node
Change a node's title.
| Parameter | Type | Description |
|---|---|---|
nodeId * | string | |
title * | string | |
expectedRevision | integer | Revision from your last getRoadmap/getNode read. If the roadmap changed since, the write fails with stale_write instead of clobbering. |
updateNodeType Update a RoadRaven node's type
Change a node's type string. Use getTypeConfig to discover valid types.
| Parameter | Type | Description |
|---|---|---|
nodeId * | string | |
type * | string | |
expectedRevision | integer | Revision from your last getRoadmap/getNode read. If the roadmap changed since, the write fails with stale_write instead of clobbering. |
updateNodeNotes Update a RoadRaven node's notes
Set a node's notes string (markdown). mode "replace" (default) overwrites the entire notes field — pass an empty string to clear. mode "append" adds a blank line then your text after the existing notes; recommended for agent progress lines.
| Parameter | Type | Description |
|---|---|---|
nodeId * | string | |
notes * | string | |
expectedRevision | integer | Revision from your last getRoadmap/getNode read. If the roadmap changed since, the write fails with stale_write instead of clobbering. |
mode | string | How to combine with existing notes. "replace" (default) overwrites the entire notes field; "append" adds a blank line then your text after the existing notes — recommended for agent progress lines. |
updateNodeMetadata Patch a RoadRaven node's metadata (shallow merge)
Shallow-PATCH a node's metadata. Each key in `patch` overwrites the same key in node.metadata; null value deletes that key. Unlisted keys are preserved. Returns the final metadata object.
| Parameter | Type | Description |
|---|---|---|
nodeId * | string | |
patch * | object | |
expectedRevision | integer | Revision from your last getRoadmap/getNode read. If the roadmap changed since, the write fails with stale_write instead of clobbering. |
updateNodes Batch-update RoadRaven nodes atomically
Apply up to 100 node updates (status, notes, metadata patch) in ONE atomic call — the roadmap revision advances exactly once for the whole batch and the response returns the final `revision` so you can chain further writes without re-reading. All-or-nothing: every item is validated first (node exists, status id in statusConfig); any failure returns batch_validation_failed with per-item {index, nodeId, code} and NOTHING is applied. Ideal for replaying a set of changes after stale_write: call getRoadmap once, rebuild all updates against the fresh tree, and resend the whole batch with expectedR…
| Parameter | Type | Description |
|---|---|---|
updates * | array | 1..100 node updates applied atomically as one change |
expectedRevision | integer | Revision from your last getRoadmap/getNode read. If the roadmap changed since, the write fails with stale_write instead of clobbering. |
moveNode Move a RoadRaven node to a new parent
Re-parent a node to newParentId at optional position (0 = first child; omit = last child). Blocks cycles (cannot move into own subtree) and cross-$ref-boundary moves.
| Parameter | Type | Description |
|---|---|---|
newParentId * | string | |
nodeId * | string | |
expectedRevision | integer | Revision from your last getRoadmap/getNode read. If the roadmap changed since, the write fails with stale_write instead of clobbering. |
position | integer |
deleteNode Delete a RoadRaven node
Delete a node. Leaf nodes delete immediately; non-leaf nodes require cascade:true (returns cascade_required with childCount otherwise). Cannot delete the last remaining root.
| Parameter | Type | Description |
|---|---|---|
nodeId * | string | |
cascade | boolean | |
expectedRevision | integer | Revision from your last getRoadmap/getNode read. If the roadmap changed since, the write fails with stale_write instead of clobbering. |
saveFile Save the currently open RoadRaven file
Force-flush the autosave debouncer immediately. Returns ok or save_error. For untitled schemas, call saveFileAs first.
saveFileAs Save the RoadRaven roadmap to a new path
Save the loaded roadmap to a new file path. Path must satisfy the same allowlist as user actions (within the loaded directory, or previously user-picked).
| Parameter | Type | Description |
|---|---|---|
path * | string |
openFile Open a RoadRaven file by path
Flush any pending autosave, then load a roadmap file by path. Path must satisfy the path-allowlist (same as user actions). The agent may need to ask the user to open the target directory first.
| Parameter | Type | Description |
|---|---|---|
path * | string |
cameraFitView Fit the entire RoadRaven tree into the viewport
Compute a zoom + pan that fits all nodes into the viewport with margin. No-op when no roadmap is loaded. Used by automated demos / recordings to pull-back the camera; safe for live agent use too.
revealNode Show a node in RoadRaven
Select a node, centre the camera on it, open its side panel and bring the RoadRaven window to the front. Where the window manager refuses to raise the window, the node is still selected. Use it to show the human the node you are on.
| Parameter | Type | Description |
|---|---|---|
nodeId * | string | ID of the target node |