# callgraph

Area: Read code. Safety: read-only.

Callgraph from a function as mermaid: callees (callers=true: what reaches it), six per function before the rest is shared out, imports as leaves; a trailing %% line counts what was hidden (max_nodes 30, max 100).

## Parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `address` | string | yes | Root function entry address. |
| `callers` | boolean | no | What reaches it instead of what it calls. |
| `max_nodes` | integer | no | Maximum graph nodes (default 30, max 100). |

## Call

```json
{
  "name": "callgraph",
  "arguments": {
    "address": "<address>"
  }
}
```
