memory_graph
Export memory subgraphs centered on a query or ID, with configurable depth and node count, for visualization.
Instructions
Subgraph export for visualization. Input: center_id or query, depth (1-3), max_nodes. Returns nodes with force-directed layout positions and edges with weights. Powers memory graph visualization.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| depth | No | How many hops from center to include (1-3, default: 2) | |
| query | No | Search query to find center node. Used if center_id not provided. | |
| center_id | No | Memory ID to center the graph on. Required if no query. | |
| max_nodes | No | Maximum number of nodes to include (default: 50) |