Get one npm package version
npm_package_version_getFetch one npm package version by exact version or dist-tag to retrieve its files, dependencies, scripts, and registry metadata for package and dependency analysis.
Instructions
Get one npm version document, by exact version or dist-tag, with its files, dependencies, scripts and registry metadata. Requires name and version.
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>",
"version": "<version>",
"context": "<context>",
"llm_model": "<llm_model>"
},
"name": "npm_package_version_get"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Required. npm package name, e.g. `express`, `lodash.merge`, `@types/node` or `--file--1`. Names are case-sensitive (`Express` is a different package) and keep legacy punctuation such as a leading `-`. | |
| context | Yes | Describe the user's underlying goal in one sentence, not the tool you are calling. | |
| version | Yes | Required. Exact version or dist-tag, e.g. `5.3.0`, `5.0.0-alpha.1`, `latest` or `latest-4`. Semver ranges (`^4`, `4.x`) are refused. | |
| llm_model | Yes | The exact model identifier you (the assistant) are running as, taken from your system prompt or environment (for example "claude-opus-4-8" or "gpt-5.2"). Used for analytics only. If you do not know your model identifier with certainty, pass "unknown" and do not guess. | |
| conversation_id | No | Echo the conversation_id from the server's previous response. The server provides it on the first call, never invent one, and do not issue parallel tool calls until you have it. |