Skip to content

Search Documentation

Search across all documentation pages

explore_graph

Navigate the knowledge graph WITHOUT burning LLM tokens. Provide a query (semantic search for entry points) and/or nodeId + nodeType (start from a specific node). Returns a map of nodes (memories + notes with summaries) and edges (relationships). Use this to discover connections, then call read_memories or read_note to dive deeper into specific nodes.

This tool replaces the legacy rlm_query tool -- zero LLM calls, pure DB traversal.

Parameters#

ParameterTypeRequiredDescription
querystring (max 2000 chars)optionalSemantic search query to find entry point nodes
nodeIdstring (UUID)optionalStart traversal from this specific node
nodeTypestringoptionalType of nodeId: note or memory (required when nodeId is provided)
maxHopsinteger (1-5)optionalMax traversal depth (default 2, max 5)
maxNodesinteger (1-200)optionalMax nodes to return (default 50, max 200)
vaultIdstring (UUID)optionalVault to scope search to

Returns#

An object containing a map of nodes (with IDs, types, and summaries) and an array of edges (with source, target, and relationship type). Nodes include both memories and notes discovered during traversal.

Example#

json
{
  "tool": "explore_graph",
  "arguments": {
    "query": "authentication architecture",
    "maxHops": 3,
    "maxNodes": 25
  }
}