visualize_graph
Export a knowledge subgraph as a Mermaid diagram to reveal its structure. Use after querying to visualize relationships between objects.
Instructions
Export a subgraph as a Mermaid diagram. Many MCP clients render Mermaid natively; if yours doesn't, the raw Mermaid text is still useful as structured output. Use this after query_subgraph to show the structure.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"session_id": "<session_id>"
},
"name": "visualize_graph"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| depth | No | How many hops to expand. Default 1. | |
| seed_ids | No | Optional. Object IDs to start from. Defaults to all objects. | |
| session_id | Yes | The session to visualize. | |
| max_objects | No | Max objects to include. Default 20. |