reference_graph
Builds a class dependency graph from IDE cross-references, tracing outgoing or incoming dependencies to a set depth and summarizing edges by artifact, methods, and module boundaries.
Instructions
Build a dependency graph between classes from the IDE's cross-reference store: starting from root classes, follow outgoing dependencies or incoming dependents up to a depth. Edges are folded to artifact level and list the methods/members involved; edges between different modules are flagged and summarized as boundaries. Only classes are expanded further; tables, EDTs, enums and others appear as leaves.
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": {
"roots": "<roots>"
},
"name": "reference_graph"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | No | ||
| depth | No | ||
| roots | Yes | Artifact IDs such as /Classes/MyClass | |
| maxNodes | No | ||
| direction | No | outgoing | |
| expandModules | No | Only expand classes in these modules beyond the roots (for example ["Contoso", "Fabrikam"]); others stay as leaves. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | ||
| edges | No | ||
| error | No | ||
| nodes | No | ||
| warnings | No | ||
| truncated | No | ||
| boundaries | No |