magento_find_layout
Search layout XML files in Magento 2 by query text or handle name to uncover page structure, blocks, containers, and references.
Instructions
Find layout XML files — handles, blocks, containers, and referenceBlock/referenceContainer declarations. Parses view//layout/.xml files across all modules. Use to understand page structure and block assignments.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "magento_find_layout"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | No | Search term to find in layout XML content. Examples: "product.info", "checkout.cart", "minicart", "breadcrumbs", "page.main.title" | |
| handle | No | Layout handle name (file name without .xml). Examples: "catalog_product_view", "checkout_index_index", "default", "customer_account" |