dependency_graph
Analyze import relationships and dependencies across files or directories to reveal what each file imports and what imports it, helping you understand code architecture and assess change impact.
Instructions
Analyze import relationships and dependencies. Shows what each file imports and what imports it. Useful for understanding code architecture and impact of changes.
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": "dependency_graph"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | No | Analyze dependencies for a specific file | |
| language | No | Filter by language | |
| directory | No | Analyze all files in a directory | |
| max_files | No | Max files to analyze (default: 100) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | Yes | ||
| imports | Yes | ||
| importers | Yes |