Safe version per release line
latest_safeFind the version to upgrade to for one npm package. Returns, per release line (major, or minor for 0.x), the version that fixes every known advisory of the last 120 days; a line still affected has safe: null and the ids that keep it affected; a line hit with no fix of its own (14.x when only 15.x is fixed) has safe: null and upgrade_to, the lowest safe version above it. Also lists advisories with no fix found, and says whether this package name itself is flagged as malicious. Use it after get_advisories, to pick one target version per line.
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": {
"package": "<package>"
},
"name": "latest_safe"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| package | Yes | One npm package name as written in package.json, for example "next" or "@solana/web3.js". |