Knowledge Graph Tools
These three tools appear only when INTELLIGENCE_MODE=enhanced (the default). They add entity extraction and graph traversal on top of the memory store. Basic mode does not register them.
extract_entities
Section titled “extract_entities”Extract named entities and relationships from text using NLP. Identifies people, organizations, technologies, and projects.
string · Required
Input text to analyze. Longer text yields more entities.
Returns: {people[], organizations[], technologies[], projects[], relationships[], keywords[]}.
get_knowledge_graph
Section titled “get_knowledge_graph”Build a knowledge graph from stored memories. Returns entities as nodes and relationships as edges.
entity_type
Section titled “entity_type”string
Filter nodes by type: people, organizations, technologies, or projects. Omit for all types.
entity_name
Section titled “entity_name”string
Filter nodes containing this name (case-insensitive substring match). Omit for all entities.
relationship_type
Section titled “relationship_type”string
Filter edges by relationship: WORKS_FOR, USES, BUILT_WITH, KNOWS, etc. Omit for all relationships.
number
Maximum nodes to return. Range: 1-100. Default: 20.
Returns: {nodes[], edges[]} where nodes have {id, type, name, memories[]} and edges have {from, to, type, confidence}.
find_connections
Section titled “find_connections”Discover relationship paths between entities in the knowledge graph. Uses BFS traversal to find how entities connect.
from_entity
Section titled “from_entity”string · Required
Starting entity name for path search. Must match an entity in the knowledge graph exactly.
to_entity
Section titled “to_entity”string
Target entity name. If omitted, returns all reachable entities up to max_depth.
max_depth
Section titled “max_depth”number
Maximum relationship hops to traverse. Range: 1-5. Default: 2.
Returns: {from, to, max_depth, paths_found, paths[]} where each path is an array of {from, to, type} edges.