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.
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') |