npm_dep_tree
Resolve the full production dependency tree for any npm package version, showing transitive dependencies with versions up to a configurable depth.
Instructions
Resolve the production dependency tree for a package version (up to a configurable depth). Shows the full transitive dependency graph with versions. Issues one registry request per discovered package (10 in flight), so a wide tree at depth 4-5 can take a while; the walk is capped at 60s and returns truncated: true with a warning if it runs out of budget.
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>"
},
"name": "npm_dep_tree"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Package name | |
| depth | No | Max tree depth where the root counts as level 1 (default 3 = root + 2 transitive levels, max 5) | |
| version | No | Semver version or dist-tag (default: 'latest') |