get_callgraph
Generate a structured call graph for a function, revealing all callers and callees. Supports JSON, DOT, and Mermaid outputs for flexible analysis.
Instructions
Get the call graph for a function showing all callers and callees as a structured graph.
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": {
"binary_path": "<binary_path>"
},
"name": "get_callgraph"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| depth | No | Maximum recursion depth for the call graph (default: unlimited) | |
| format | No | Output format for the call graph | json |
| address | No | Hex address of the function (e.g. "0x08048000") | |
| binary_path | Yes | Absolute path to the binary file | |
| function_name | No | Name of the function (e.g. "main") |