jsdelivr_npm_resolve
Resolve an npm semver range or tag to an exact package version via jsDelivr, so you can pin dependencies or build accurate CDN URLs.
Instructions
Resolve an npm semver range or tag to an exact version via jsDelivr.
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": "jsdelivr_npm_resolve"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| package | Yes | npm package name, e.g. 'jquery' or '@popperjs/core' | |
| specifier | No | Semver range or tag to resolve, e.g. '2.2', '^3.0.0', 'latest'. Default: 'latest' |