Visualize graph slice
visualize_graphGenerate a Mermaid or Graphviz diagram for a code graph slice to visualize component hierarchy or frontend-to-backend flow.
Instructions
Return a Mermaid (default) or Graphviz DOT diagram for a slice of the graph: kind 'component-tree' (render hierarchy under a component) or 'fe-to-be' (frontend-to-backend flow). Paste the Mermaid block directly into chat to render it.
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": {
"name": "<name>"
},
"name": "visualize_graph"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | No | ||
| name | Yes | root component/route/endpoint for the slice | |
| format | No | ||
| max_nodes | No | ||
| max_tokens | No | response token budget (default 2000) |