scan_packages
Scan code for package imports and flag hallucinated (AI-invented) packages. Supports multiple ecosystems and verbosity levels.
Instructions
Scan code for package imports and check for hallucinated (AI-invented) packages. Use verbosity='minimal' for counts, 'compact' (default) for flagged packages, 'full' for all details.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ecosystem | Yes | The package ecosystem (dart=pub.dev, perl=CPAN, raku=raku.land, npm=npmjs, pypi=PyPI, rubygems=RubyGems, crates=crates.io) | |
| file_path | Yes | Path to the file to scan | |
| verbosity | No | Response detail level: 'minimal' (counts only), 'compact' (default), 'full' (all details) |