Version actually installed in this project
installed_versionIdentify the exact installed version of a dependency from node_modules or lockfile, including declared range and npm drift. Check before coding to avoid using APIs absent from your installed package.
Instructions
Report the EXACT version of a dependency that is installed in the current project right now — read from node_modules (authoritative) or the lockfile — plus the range declared in package.json and, if online, how far behind npm's latest it is. Reach for this BEFORE writing code against a library: the model's training blends many versions and guesses APIs that don't exist in the installed one. Ground on THIS number instead. Set the project with the projectDir arg or the INSTALLED_VERSION_PROJECT env var.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| package | Yes | Dependency name to resolve, e.g. 'react', '@tanstack/react-query'. | |
| projectDir | No | Absolute path to the project root (folder with package.json). Defaults to INSTALLED_VERSION_PROJECT or the server's cwd. | |
| checkLatest | No | Also fetch npm's latest version to show drift (one network call). Default true. |