Skip to content

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.

Capabilityui.ui_command
AreaWindow and UI driver
Accesschanges ide
Reaches—
Rightsui
Dry runnone

Arguments

ArgumentTypeDescription
commandrequiredstringThe command (see the tool's description).
pathstringopen_file: file relative to the project root.
lineintegeropen_file: 1-based line.minimum 0
columnintegeropen_file: 1-based column.minimum 0
idstringtool_window: its id (see list).
opstringtool_window: open (default), focus or close.
pagestringsettings: page id (see list).
actionstringinvoke: action id.
textstringtype_text: the text.
indexintegerchoose: 0-based index.minimum 0
labelstringchoose: or exact label.
windowintegerA 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.

Terminal window
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
}
}
}