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.
| Capability | code.generate_choices |
|---|---|
| Area | Code insight and refactoring |
| Access | reads only |
| Reaches | — |
| Rights | none |
| Dry run | none |
Arguments
| Argument | Type | Description |
|---|---|---|
pathrequired | string | Workspace-relative .java file. |
linerequired | integer | 1-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.
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 } }}