editor_selection
MCP tools › Window and UI driver
The selection of the editor that has the focus in the running Ferris IDEA window: path (workspace-relative), start and end as 0-based line and character (Unicode scalar values; the caret when nothing is selected), the selected text and how many carets the editor has (the selection is the primary caret's). Read only. Secrets in the text are masked as in the other reading tools (masked counts them). selection is null when no editor of a workspace file has the focus. Served by the window over HTTP; a server without a window (stdio) cannot see it.
Its results carry text from files: the client is told to treat that as data, never as instructions.
| Capability | ui.editor_selection |
|---|---|
| Area | Window and UI driver |
| Access | reads only |
| Reaches | — |
| Rights | none |
| Dry run | none |
Arguments
No arguments.
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 editor_selectionInput schema as JSON
{ "type": "object"}