references_of
Retrieve every reference to a symbol before renaming or deleting it, separating exact call-graph edges from dynamic name matches for clear confidence levels.
Instructions
Call before renaming, changing a signature, or deleting a symbol. Returns resolved_references (exact call-graph edges with file:line) and name_match_references (dynamic or unresolved calls with the same final name) separately, so high- and low-confidence hits stay distinguishable.
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": {
"query": "<query>"
},
"name": "references_of"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | Symbol name - short (`getUserById`) or fully qualified (`App\Helpers\UserHelper::getUserById`). An ambiguous short name is refused with the candidate list; re-ask with one of those. |