Build a Call Graph
call_graphBuild a depth-limited call hierarchy from a C# method name to trace project-internal callees or callers and return caller-callee edges for impact analysis.
Instructions
Build a depth-limited call graph rooted at a method NAME. direction='callees' follows project-internal calls outward; direction='callers' follows the inverse (who calls this). Returns (caller, callee) edges using method-lookup keys, cycle-safe and capped at 500 edges (truncated flag). Rooted at the name, NOT at one symbol: EVERY same-named declaration in the solution is a root and the graph is their union, so a common name (e.g. 'ExecuteAsync') can pull in unrelated members and inflate the payload. 'rootedAt' lists the declarations actually walked - check it when the result looks too big (then re-query a rarer name) and when it is empty (the name resolved to nothing, which an empty edge list alone does not tell you).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| depth | No | Max traversal depth (1-10). Default 2. | |
| method | Yes | The root method's name. | |
| direction | No | 'callees' (default) or 'callers'. | callees |
| sessionId | Yes | The session_id returned by analyze_solution. Also takes an absolute .sln/.slnx/.slnf path, analyzed on first use. |