phpactor_find_references
Find all semantic references to a PHP class or class member across the project, returning type-aware results instead of simple text matches.
Instructions
Find all semantic references to a PHP class or class member across the project. Returns type-aware results (not grep-based text matching).
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": {
"projectPath": "<projectPath>",
"filePath": "<filePath>"
},
"name": "phpactor_find_references"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filePath | Yes | Path to the PHP file, relative to projectPath | |
| memberName | No | Method/property/constant name. Omit to find class references. | |
| memberType | No | Required when memberName is set | |
| projectPath | Yes | Absolute path to the PHP project root |