magento_trace_data_flow
Trace data attribute flow across the Magento codebase: identify which classes set and get a specific attribute key, including methods and XML references. Understand data dependencies for attributes like custom_discounted_price_incl_tax.
Instructions
Trace how a data attribute flows through the Magento codebase: find all PHP files that set (via magic setter, setData, addData) and get (via magic getter, getData) a specific attribute key. Shows which classes write vs read the attribute, in which methods, and whether XML configs reference it. Use this to understand data dependencies — e.g., who sets custom_discounted_price_incl_tax on Quote\Address and who reads it.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| modelClass | No | Optional: model class name to prioritize results that reference this class. Examples: "Quote\Address", "Order", "Product" | |
| attributeKey | Yes | The snake_case data attribute key to trace. Examples: "custom_discounted_price_incl_tax", "base_grand_total", "custom_free_shipping_price", "subtotal_with_discount" |