callgraph
Draw a function call graph as Mermaid, showing callees or callers (callers=true), imports as leaves, and cut nodes by max_nodes.
Instructions
Draw a function's call graph as mermaid: callees, or callers with callers=true; imports are leaves and a %% line counts nodes cut by max_nodes. Not for one path (use reaches) or a caller list (use xrefs).
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": {
"address": "<address>"
},
"name": "callgraph"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| address | Yes | Root function entry address. | |
| callers | No | What reaches it instead of what it calls. | |
| max_nodes | No | Maximum graph nodes (default 30, max 100). |