find_calls
Find all locations in the codebase where a specific function or method is called, with details on file, line, and resolved call targets.
Instructions
Find every place in the codebase that calls a specific function or method.
Use this when you need to answer:
"Who calls getUserById?" → name="getUserById"
"Where is redis.get used?" → name="get", className="redis"
"Is this function dead code?" → if 0 calls found, likely unused
Returns file, line, and whether the call target is resolved (linked to its definition in the graph).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Function or method name to find calls for | |
| className | No | Optional: class name for method calls | |
| limit | No | Max results (default: 10, max: 500) | |
| offset | No | Skip first N results (default: 0) |