magento_find_method
Find PHP method or function implementations across Magento codebase. Search method names, definitions, and class method lists, with optional class name filter.
Instructions
Find implementations of a PHP method or function across the Magento codebase. Searches method names, function definitions, and class method lists. See also: magento_find_class (parent class), magento_find_plugin (interceptors around this method).
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": {
"methodName": "<methodName>"
},
"name": "magento_find_method"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| className | No | Optional class name to narrow method search. Example: "ProductRepository" | |
| methodName | Yes | PHP method or function name to find. Examples: "execute", "getPrice", "save", "getById", "getList", "beforeSave", "afterDelete", "toHtml", "dispatch" |