Ground a set of imports on their installed versions
resolve_importsResolve exact installed versions for the packages you intend to import, grounding your code in the real dependencies present. Pass any import specifiers to get the precise version for each.
Instructions
Given the packages you are ABOUT TO import in a file, return the exact installed version of each in this project. Use this at the start of writing/editing a file so every library call is grounded on the version really present. Pass bare import specifiers (e.g. 'react-router-dom', '@aws-sdk/client-s3'); subpaths are normalized to the package.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| imports | Yes | Package/import specifiers you intend to use, e.g. ['react','zod','@tanstack/react-query/build']. | |
| projectDir | No | Project root; defaults to INSTALLED_VERSION_PROJECT or cwd. |