List Npm Files
list_npm_filesjsDelivr Data API — the file tree of one published npm package version (latest by default) as jsDelivr indexes it for CDN delivery. Returns the directory structure with each file's path, byte size, content hash and type, read from jsDelivr's package index. Answers which files, entry points and build outputs an npm package version actually ships.
Example tool call
This call uses example arguments supplied in the tool’s input schema.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"package_name": "lodash"
},
"name": "list_npm_files"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| version | No | Specific published version, e.g. "4.17.21". Omit this argument entirely to get the latest published version — do not pass the literal string "latest"; jsDelivr's API rejects that as an unresolvable version and returns 404. | |
| package_name | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||