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).
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": {
"name": "<name>"
},
"name": "find_calls"
}
}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) |