Rank upgrade candidates (not a safety verdict; full check required)
find_safe_upgrade_targetUse only when an existing npm or PyPI dependency has an exact current version but no chosen target. Ranks candidates; candidates are not declared safe and require check_dependency_upgrade or plan_dependency_upgrade. Do not use when a target is stated, for a new install, or as authorization to edit files. Read-only and safe to retry.
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": {
"ecosystem": "<ecosystem>",
"package": "<package>",
"current_version": "<current_version>"
},
"name": "find_safe_upgrade_target"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| package | Yes | Exact registry package name. | |
| ecosystem | Yes | Package ecosystem. Only npm and pypi are supported. | |
| max_major_jump | No | Optional major-version jump cap. 0 = stay in the same major. | |
| current_version | Yes | Exact installed version. | |
| allow_prerelease | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| billing | No | ||
| package | No | ||
| coverage | No | ||
| evidence | No | ||
| ecosystem | No | ||
| freshness | No | ||
| candidates | No | ||
| confidence | No | ||
| next_action | No | ||
| latest_stable | No | ||
| action_allowed | No | ||
| current_version | No | ||
| analysis_version | No | ||
| recommended_target | No |