magento_find_class
Locates PHP classes, interfaces, abstracts, and traits in Magento by name. Searches repositories, models, blocks, helpers, controllers, and API interfaces.
Instructions
Find a PHP class, interface, abstract class, or trait by name in Magento. Locates repositories, models, resource models, blocks, helpers, controllers, API interfaces, and data objects. See also: magento_find_plugin (interceptors for this class), magento_find_preference (DI overrides), magento_find_method (methods in the class).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| className | Yes | Full or partial PHP class name. Examples: "ProductRepository", "AbstractModel", "CartManagementInterface", "CustomerData", "StockItemRepository" | |
| namespace | No | Optional PHP namespace filter to narrow results. Example: "Magento\Catalog\Model" |