suggest_imports
Find matching import candidates for unresolved Java type names by searching project sources, JDK, and libraries. Results are sorted by relevance.
Instructions
Find import candidates for unresolved type.
USAGE: suggest_imports(typeName="List") OUTPUT: List of matching types with fully qualified names and relevance
Searches project sources, JDK, and libraries for types matching the simple name. Results are sorted by relevance (java.util types ranked higher than java.awt, etc.).
Requires load_project to be called first.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| typeName | Yes | Simple type name to find imports for (e.g., 'List', 'Map') | |
| maxResults | No | Maximum candidates to return (default 20) |