suggest_imports
Find import statements for Java types by searching project sources, JDK, and libraries. Enter a type name to get qualified import candidates 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 |
|---|---|---|---|
| maxResults | No | Maximum candidates to return (default 20) | |
| typeName | Yes | Simple type name to find imports for (e.g., 'List', 'Map') |