get_dependency_graph
Retrieves the file dependency graph, showing import relationships between files to understand module structure and detect circular dependencies.
Instructions
Get the file dependency graph as Mermaid syntax or a list.
Shows which files import which other files, useful for understanding module structure and identifying circular dependencies.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "get_dependency_graph"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| format | No | "mermaid" (default, Mermaid.js flowchart) or "list" | mermaid |
| file_path | No | optional — show only dependencies involving this file |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |