get_callers
Find resolved callers of a function or method by call edges, not text matches, to identify who calls X without grep noise from comments, strings, or same-named functions.
Instructions
Find entities that call this function — answers 'who calls X?' with resolved call edges, not text matches. Use instead of grepping for the name when you need real callers (not comments, strings, or same-named functions).
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": {
"repo": "<repo>",
"entity_id": "<entity_id>"
},
"name": "get_callers"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| repo | Yes | Absolute path to the project root containing `.cogz/`. | |
| limit | No | ||
| entity_id | Yes | Entity ID whose callers to find (function, method). |