build_upgrade_plan
Generate a Magento upgrade plan for target PHP and Magento versions, listing concrete blockers from compatibility, code quality, and security checks. Flag unverified signals.
Instructions
Builds an upgrade plan for the given Magento project against a target PHP and Magento version by combining check_updates, scan_module_risk, audit_security, check_outdated_packages and fetch_release_notes. The verdict is a list of concrete blockers (composer constraints, code that Rector flags as needing changes, phpcs/phpstan errors in the project's own app/code, security advisories against installed packages), each with its own reason — not a single abstract score. check_outdated_packages and vendor/-scope scan_module_risk issues are informational only (included in the full result, not in blockers): being behind on releases, or a third-party module's own code quality, don't block this upgrade the way an app/code error or a composer constraint does. ready=true only when the blockers list is empty, but check 'unverified' too: it lists any signal that couldn't run at all (e.g. phpstan/rector not installed, or composer missing for audit_security/check_outdated_packages), which ready=true does not account for.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Filesystem path to the Magento project root (holds composer.json). | |
| target_php | Yes | Target PHP version to check compatibility against, e.g. "8.3". | |
| target_magento | Yes | Target Magento version to check compatibility against, e.g. "2.4.7". |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||