callgraph
Tools / Read code · read-only
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).
Parameters
addressstringrequired
Root function entry address.
callersboolean
What reaches it instead of what it calls.
max_nodesinteger
Maximum graph nodes (default 30, max 100).
Call
json
{
"name": "callgraph",
"arguments": {
"address": "…"
}
}