check_updates
Check a Magento project's declared package requirements and own code against target PHP and Magento versions, flagging upgrade blockers and required code changes.
Instructions
Checks the given Magento project against a target PHP and Magento version, with two independent signals: a per-package verdict ('ok', 'blocks' or 'unknown') from declared composer.lock PHP requirements, and code_compatibility — whether the project's own code would actually need changes under the target PHP, via a Rector dry-run (declared requirements are often just '*', which alone gives a false sense of readiness). The PHP requirement for the target Magento version comes from a local cache, a live fetch, or an offline fallback table, in that order — the result says which one was used.
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": {
"path": "<path>",
"target_php": "<target_php>",
"target_magento": "<target_magento>"
},
"name": "check_updates"
}
}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 | |||