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.
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" |