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).
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). |