session_diagram
Show or regenerate an architecture diagram by auto-scanning project files to build a dependency graph, output in Mermaid format for rendering.
Instructions
Show or regenerate the architecture diagram (Mermaid format). Auto-scans the project files to build a dependency graph. Pass to a Mermaid renderer to visualize.
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": {
"project_root": "<project_root>"
},
"name": "session_diagram"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| regenerate | No | Force regenerate from current files | |
| session_id | No | Session to get diagram from (default: latest) | latest |
| project_root | Yes |