magento_find_controller
Maps URL route paths to Magento controller action classes. Specify route in frontName/controller/action format and area to find the corresponding controller file.
Instructions
Find MVC controllers by frontend or admin route path. Maps URL routes to Controller action classes with execute() method. See also: magento_find_config with configType=routes.
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": {
"route": "<route>"
},
"name": "magento_find_controller"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| area | No | Magento area: frontend (storefront routes) or adminhtml (admin panel routes) | |
| route | Yes | URL route path in frontName/controller/action format. Examples: "catalog/product/view", "checkout/cart/add", "customer/account/login", "sales/order/view", "cms/page/view", "wishlist/index/add" |