magento_impact_analysis
Identify all files referencing a PHP class via use statements, DI configuration, instantiation, and type hints to map cross-module dependencies before making changes.
Instructions
Analyze the impact of changing a PHP class — finds all files that reference it via use statements, DI configuration, instantiation, and type hints. Combines DI XML tracing with PHP source analysis to map cross-module dependencies.
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": {
"className": "<className>"
},
"name": "magento_impact_analysis"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| className | Yes | Full or partial PHP class/interface name. Examples: "ProductRepository", "CartManagementInterface", "StoreManagerInterface" |