Package Version
package_versionResolve a package version from a registry by name and ecosystem, optionally honoring a version constraint. Select release or prerelease versions for builds and dependency checks.
Instructions
Look up the latest or constraint-satisfying version of a package from a registry.
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": {
"name": "<name>",
"ecosystem": "<ecosystem>"
},
"name": "package_version"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Package name (Packagist: vendor/package, Maven: groupId:artifactId, Go: module path, Swift: owner/repo on GitHub). | |
| ecosystem | Yes | Registry ecosystem (pypi, npm, packagist, crates, nuget, maven, rubygems, go, pub, swift). | |
| constraint | No | Optional version constraint such as '>=4.2,<5'. | |
| allow_prerelease | No | Whether pre-release versions may be selected. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |