get_dependency_graph
Retrieve dependency graph for a Java type or package, showing imports, inheritance, and method-level dependencies. Customize depth and include external library options.
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 |
|---|---|---|---|
| name | Yes | Type name (fully qualified) or package name | |
| scope | Yes | Scope: 'type' or 'package' | |
| depth | No | How deep to follow dependencies (default: 1) | |
| includeExternal | No | Include JDK/library dependencies (default: false) |