visualise
Generate a Mermaid flowchart to visualize a memory and its direct connections, or the full domain graph highlighting most-connected nodes. Useful for human inspection of associative memory networks.
Instructions
Generate a Mermaid.js flowchart. Pass memory_id to see a single memory and all its direct connections. Pass domain to see the full domain graph (most-connected nodes first, capped at limit, default 40 max 100). Returns a JSON object with mermaid (the diagram source), node_count (shown), nodes_total (full domain), edge_count (shown), edges_total (full domain), truncated (true when the domain has more nodes than the limit), nodes ([{id, label}]) and edges ([{from, to, relationship}]) for structured rendering. Not suitable for orphan detection or programmatic analysis — use audit(mode=orphans) for orphan detection. Output may be truncated for large domains. Use for human visual inspection only. Output the mermaid string inside a ```mermaid code block. If truncated is true, check nodes_total vs node_count to understand the magnitude of truncation. Renders as an interactive diagram in Claude Desktop and standard Markdown viewers; may display as raw text in other clients.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| domain | No | A domain name (e.g. 'memoryweb-meta'). To visualise a single memory by ID, use the memory_id parameter instead. | |
| limit | No | Max nodes to include in domain mode (default 40, max 100). Most-connected nodes are prioritised when truncating. | |
| memory_id | No | A memory ID. Returns the neighbourhood: the memory plus all directly connected memories and connections. Takes precedence over domain if both are supplied. |