Skip to content

generate_choices

MCP tools › Code insight and refactoring

What Generate offers in the Java class around a 1-based line: for each kind that applies its fields with checked (the default selection) and its templates, usable as fields and template of generate_code. Reads only.

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

Capabilitycode.generate_choices
AreaCode insight and refactoring
Accessreads only
Reaches—
Rightsnone
Dry runnone

Arguments

ArgumentTypeDescription
pathrequiredstringWorkspace-relative .java file.
linerequiredinteger1-based line inside the class.minimum 0

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 generate_choices '{"path":"<string>","line":1}'
Input schema as JSON
{
"type": "object",
"required": [
"path",
"line"
],
"properties": {
"path": {
"description": "Workspace-relative `.java` file.",
"type": "string"
},
"line": {
"description": "1-based line inside the class.",
"type": "integer",
"minimum": 0
}
}
}