get_imports
Analyze JavaScript/TypeScript code by extracting import statements to audit dependencies, identify heavy or suspicious packages, and prepare for refactoring or license compliance.
Instructions
Get all import statements with detailed module and specifier information. Essential for dependency analysis.
Examples: • Dependency audit: get_imports() to see all external dependencies • Bundle analysis: get_imports() to identify heavy imports • Security audit: get_imports() to check for suspicious packages • TypeScript analysis: get_imports({includeTypeImports: false}) to focus on runtime imports • Refactoring prep: get_imports() to understand module structure before changes • License compliance: get_imports() to generate dependency list
Input Schema
Name | Required | Description | Default |
---|---|---|---|
includeTypeImports | No | Include TypeScript type-only imports (default: true). Set false for runtime dependency analysis. |