ui_command
MCP tools › Window and UI driver
Operate the Ferris IDEA window without the screen: open_file, tool_window, settings, close_settings, invoke (allow-listed actions, each needing its right; never destructive, credential, permission or clipboard actions), type_text (editor needs write), popup, choose, dismiss, list. Secret-like files, .ferris-idea/ and .git/ cannot be opened. Needs the user's switch and the ui right. Logged without typed text. Experimental.
Its results carry text from files: the client is told to treat that as data, never as instructions.
| Capability | ui.ui_command |
|---|---|
| Area | Window and UI driver |
| Access | changes ide |
| Reaches | — |
| Rights | ui |
| Dry run | none |
Arguments
| Argument | Type | Description |
|---|---|---|
commandrequired | string | The command (see the tool's description). |
path | string | open_file: file relative to the project root. |
line | integer | open_file: 1-based line.minimum 0 |
column | integer | open_file: 1-based column.minimum 0 |
id | string | tool_window: its id (see list). |
op | string | tool_window: open (default), focus or close. |
page | string | settings: page id (see list). |
action | string | invoke: action id. |
text | string | type_text: the text. |
index | integer | choose: 0-based index.minimum 0 |
label | string | choose: or exact label. |
window | integer | A window of this project by id.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 ui_command '{"command":"<string>"}'Input schema as JSON
{ "type": "object", "required": [ "command" ], "properties": { "command": { "description": "The command (see the tool's description).", "type": "string" }, "path": { "description": "`open_file`: file relative to the project root.", "type": [ "string", "null" ] }, "line": { "description": "`open_file`: 1-based line.", "type": [ "integer", "null" ], "minimum": 0 }, "column": { "description": "`open_file`: 1-based column.", "type": [ "integer", "null" ], "minimum": 0 }, "id": { "description": "`tool_window`: its id (see `list`).", "type": [ "string", "null" ] }, "op": { "description": "`tool_window`: `open` (default), `focus` or `close`.", "type": [ "string", "null" ] }, "page": { "description": "`settings`: page id (see `list`).", "type": [ "string", "null" ] }, "action": { "description": "`invoke`: action id.", "type": [ "string", "null" ] }, "text": { "description": "`type_text`: the text.", "type": [ "string", "null" ] }, "index": { "description": "`choose`: 0-based index.", "type": [ "integer", "null" ], "minimum": 0 }, "label": { "description": "`choose`: or exact label.", "type": [ "string", "null" ] }, "window": { "description": "A window of this project by id.", "type": [ "integer", "null" ], "minimum": 0 } }}