Skip to content

import_hint

MCP tools › Workspace and files

The import hint for a Java file (SPEC-0122 v4, through jdtls): the unresolved class names the server reports, each with its 0-based position and the fully qualified classes that would import it. Apply one with apply_code_action and the title Import 'Name' (package). Reads only.

Its results carry text from files, language_server: the client is told to treat that as data, never as instructions.

Capabilityworkspace.import_hint
AreaWorkspace and files
Accessreads only
Reachesprocess
Rightsnone
Dry runnone

Arguments

ArgumentTypeDescription
pathrequiredstringWorkspace-relative .java file.

Call it from a shell

ferris-idea call runs one tool with the rights and safe mode of ferris-idea mcp. Replace the folder and the placeholder values.

Terminal window
ferris-idea call ~/my-project import_hint '{"path":"<string>"}'
Input schema as JSON
{
"type": "object",
"required": [
"path"
],
"properties": {
"path": {
"description": "Workspace-relative `.java` file.",
"type": "string"
}
}
}