npm Package File at Version
npm_fileOne file from a published npm package version, for when GitHub's unauthenticated rate limit blocks you. Read from the registry tarball after the tarball is checked against the hash npm published for it; a tarball that does not match is never served. Text or base64, with a sha256 of the file.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "npm_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | File inside the package, e.g. package.json. | |
| package | No | npm package name, e.g. ms or @scope/name. | |
| version | No | Exact version (1.2.3) or latest. | |
| max_bytes | No | Largest file to return (default 200,000; up to 1,048,576). |