roslyn:get_outgoing_calls
Identify all methods and properties called by a .NET method using Roslyn. Pinpoint dependencies with zero-based file coordinates to trace code behavior.
Instructions
Get all methods and properties that a method calls. Helps understand method dependencies and behavior. Returns list of called symbols with locations. IMPORTANT: Uses ZERO-BASED coordinates (editor line - 1).
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": {
"filePath": "<filePath>",
"line": "<line>",
"column": "<column>"
},
"name": "roslyn:get_outgoing_calls"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| line | Yes | Zero-based line number inside the method | |
| column | Yes | Zero-based column number | |
| filePath | Yes | Absolute path to source file | |
| maxDepth | No | How deep to trace calls (1 = direct only, default: 1) |