RoadRaven

v0.9.2
io.github.Shuffzord/roadraven Checked 3 hours ago Published 1 month ago

Create 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).

ParameterTypeDescription
nodeId *stringThe node UUID from the roadmap
status *stringCore node status
expectedRevisionintegerRevision from your last getRoadmap/getNode read. If the roadmap changed since, the write fails with stale_write instead of clobbering.
metaobjectArbitrary 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.…

ParameterTypeDescription
depthintegerLevels 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.
hideCompletedbooleanShow a node as a stub when it and everything under it is completed. A completed node with any open descendant stays in full.
omitNotesbooleanLeave out notes and the createdAt/updatedAt timestamps.
rootIdstringAnswer 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.

ParameterTypeDescription
nodeId *stringID 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.

ParameterTypeDescription
metaKeystring
metaValue
omitNotesbooleanLeave out notes and the createdAt/updatedAt timestamps
parentIdstring
statusOne status, or a list of statuses to match any of (e.g. ["in-progress", "blocked"] for open work)
titleContainsstringCase-insensitive substring against node.title
typestring

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.

ParameterTypeDescription
parentId *stringID of the parent node
title *stringNode title
expectedRevisionintegerRevision from your last getRoadmap/getNode read. If the roadmap changed since, the write fails with stale_write instead of clobbering.
idstringOptional 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…
metadataobject
notesstring
statusstringCore node status — defaults to not-started
typestringNode 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.

ParameterTypeDescription
statusConfigarray
titlestring
typeConfigarray

renameNode Rename a RoadRaven node

Change a node's title.

ParameterTypeDescription
nodeId *string
title *string
expectedRevisionintegerRevision 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.

ParameterTypeDescription
nodeId *string
type *string
expectedRevisionintegerRevision 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.

ParameterTypeDescription
nodeId *string
notes *string
expectedRevisionintegerRevision from your last getRoadmap/getNode read. If the roadmap changed since, the write fails with stale_write instead of clobbering.
modestringHow 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.

ParameterTypeDescription
nodeId *string
patch *object
expectedRevisionintegerRevision 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…

ParameterTypeDescription
updates *array1..100 node updates applied atomically as one change
expectedRevisionintegerRevision 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.

ParameterTypeDescription
newParentId *string
nodeId *string
expectedRevisionintegerRevision from your last getRoadmap/getNode read. If the roadmap changed since, the write fails with stale_write instead of clobbering.
positioninteger

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.

ParameterTypeDescription
nodeId *string
cascadeboolean
expectedRevisionintegerRevision 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).

ParameterTypeDescription
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.

ParameterTypeDescription
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.

ParameterTypeDescription
nodeId *stringID of the target node