magento_find_preference
Retrieves which concrete class implements an interface or replaces another class via di.xml preference overrides.
Instructions
Find DI preference overrides — which concrete class implements an interface or replaces another class via di.xml. See also: magento_find_class (implementation details), magento_find_config with configType=di.
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": {
"interfaceName": "<interfaceName>"
},
"name": "magento_find_preference"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| interfaceName | Yes | Interface or class name to find preference/implementation for. Examples: "ProductRepositoryInterface", "StoreManagerInterface", "LoggerInterface", "OrderRepositoryInterface", "CustomerRepositoryInterface" |