[callgraph]
Finds methods called by a given method's body. Requires a symbolKey. Supports depth-limited expansion and paging.
Try this tool in Playground.
| Name | Type | Required | Description |
|---|---|---|---|
| symbolKey | string | Yes | Opaque symbolKey from search_symbols, resolve_symbol, get_symbol_at_position, or any tool that returns symbolKey. Not a name. |
| depth | number | No | Depth of expansion. Default is 1 (direct calls). |
| scope | json | No | Optional scope for outgoing call analysis. |
| skip | number | No | Pagination offset. Default is 0. |
| take | number | No | Pagination size. Default is 200. |
| pathStyle | string | No | Path style: 'absolute' (default) or 'relative' (to solution root). |
| timeout_ms | number | No | Timeout in milliseconds (5 minutes). Use 0 to disable. Default is 300000. |
Get outgoing calls for a method
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "get_outgoing_calls",
"arguments": {
"symbolKey": "...",
"depth": 1
}
}
}{
"success": true,
"data": {
"symbolKey": "...",
"callCount": 2,
"paging": {
"skip": 0,
"take": 200,
"returned": 2,
"total": 2
},
"calls": [
{
"callee": {
"name": "SaveAsync",
"fullName": "MyApp.Data.UserRepository.SaveAsync(User)",
"symbolKey": "..."
},
"isExternal": false,
"depth": 1
}
]
},
"error": null
}Returns outgoing calls (with paging)