get_dependency_graph
Analyzes Java code dependencies for packages or types, identifying imports, inheritance, implementations, fields, parameters, and return types to map relationships within projects.
Instructions
Get package/type dependencies.
USAGE: get_dependency_graph(scope="type", name="com.example.OrderService") USAGE: get_dependency_graph(scope="package", name="com.example.service") OUTPUT: Dependency graph with nodes and edges
Dependency types tracked:
import: Direct imports
extends: Superclass inheritance
implements: Interface implementation
field: Field type dependencies
parameter: Method parameter types
return: Method return types
Requires load_project to be called first.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| includeExternal | No | Include JDK/library dependencies (default: false) | |
| depth | No | How deep to follow dependencies (default: 1) | |
| scope | Yes | Scope: 'type' or 'package' | |
| name | Yes | Type name (fully qualified) or package name |