magento_trace_flow
Trace Magento execution flow from any entry point to map controllers, plugins, observers, and templates for a request path.
Instructions
Trace Magento execution flow from an entry point (route, API endpoint, GraphQL mutation, event, or cron job). Chains multiple searches to map controller → plugins → observers → templates for a given request path. Use this to understand how a request is processed end-to-end.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| depth | No | Trace depth. "shallow" traces entry point + config + direct plugins (faster). "deep" adds observers, layout, templates, and DI preferences (more complete). Default: shallow. | shallow |
| entryType | No | Type of entry point. "auto" detects from the pattern (default). Override when auto-detection is wrong. | auto |
| entryPoint | Yes | The entry point to trace. Examples: "checkout/cart/add" (route), "/V1/products" (API), "placeOrder" (GraphQL), "sales_order_place_after" (event), "catalog_product_reindex" (cron) |