Skip to content

ui_act

MCP tools › Window and UI driver

Operate an element of the Ferris IDEA window: click, context_click, hover, drag, scroll, press (keymap keys like cmd-shift-a), type, and semantic actions. Waits until actionable; several matches fail with ambiguous. Input goes only to Ferris IDEA, marked as automated; user input pauses it, Esc stops it. Needs the setting, the ui right and the right of each effect the element declares; user-reserved elements (trust, rights, Settings, secret fields, Paste) answer reserved. 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_act
AreaWindow and UI driver
Accesschanges ide
Reaches—
Rightsui
Dry runnone

Arguments

ArgumentTypeDescription
locatoranyThe element: a locator (text or JSON form). Resolved again until it is actionable; more than one match fails with ambiguous.
elementintegerOr an element id from ui_find (fails with stale once the element is gone).minimum 0
actionrequiredstringclick, context_click, hover, drag, scroll, scroll_into_view, press, type, focus, select, expand, collapse, invoke, show_context_menu, increment, decrement, set_value.
buttonstringclick: left (default), right or middle.
countintegerclick: 1 to 3 (default 1).minimum 0 · maximum 255
modifiersarray of stringclick: held modifiers, as the keymap writes them (cmd, ctrl, alt, shift).
positionanyPointer actions: the point relative to the element's top left (default: its centre).
toanydrag: the target element (locator).
offsetanydrag: an offset {x, y} instead of a target.
dxnumberscroll: horizontal delta.
dynumberscroll: vertical delta.
unitstringscroll: lines (default) or pixels.
keysstringpress: keys as the keymap writes them (cmd-shift-a, alt-f12, cmd-k cmd-s); without a locator they go to the window.
textstringtype: Unicode text, committed through the window's input handler (logged only as its length).
clearbooleantype: select and delete the existing value first.
valuestringset_value: the value.
levelstringwindow (default for pointer, key and text actions) or semantic; native is only for the self-test.
timeout_msintegerHow long to wait for the element to become actionable, in milliseconds (default 10000).minimum 0
forcebooleanSkip the checks except "attached" (tests of disabled states).
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_act '{"action":"<string>"}'
Input schema as JSON
{
"type": "object",
"required": [
"action"
],
"properties": {
"locator": {
"description": "The element: a locator (text or JSON form). Resolved again until it is actionable; more\nthan one match fails with `ambiguous`."
},
"element": {
"description": "Or an element id from `ui_find` (fails with `stale` once the element is gone).",
"type": [
"integer",
"null"
],
"minimum": 0
},
"action": {
"description": "`click`, `context_click`, `hover`, `drag`, `scroll`, `scroll_into_view`, `press`, `type`,\n`focus`, `select`, `expand`, `collapse`, `invoke`, `show_context_menu`, `increment`,\n`decrement`, `set_value`.",
"type": "string"
},
"button": {
"description": "`click`: `left` (default), `right` or `middle`.",
"type": [
"string",
"null"
]
},
"count": {
"description": "`click`: 1 to 3 (default 1).",
"type": [
"integer",
"null"
],
"maximum": 255,
"minimum": 0
},
"modifiers": {
"description": "`click`: held modifiers, as the keymap writes them (`cmd`, `ctrl`, `alt`, `shift`).",
"type": [
"array",
"null"
],
"items": {
"type": "string"
}
},
"position": {
"description": "Pointer actions: the point relative to the element's top left (default: its centre)."
},
"to": {
"description": "`drag`: the target element (locator)."
},
"offset": {
"description": "`drag`: an offset `{x, y}` instead of a target."
},
"dx": {
"description": "`scroll`: horizontal delta.",
"type": [
"number",
"null"
]
},
"dy": {
"description": "`scroll`: vertical delta.",
"type": [
"number",
"null"
]
},
"unit": {
"description": "`scroll`: `lines` (default) or `pixels`.",
"type": [
"string",
"null"
]
},
"keys": {
"description": "`press`: keys as the keymap writes them (`cmd-shift-a`, `alt-f12`, `cmd-k cmd-s`); without\na locator they go to the window.",
"type": [
"string",
"null"
]
},
"text": {
"description": "`type`: Unicode text, committed through the window's input handler (logged only as its\nlength).",
"type": [
"string",
"null"
]
},
"clear": {
"description": "`type`: select and delete the existing value first.",
"type": [
"boolean",
"null"
]
},
"value": {
"description": "`set_value`: the value.",
"type": [
"string",
"null"
]
},
"level": {
"description": "`window` (default for pointer, key and text actions) or `semantic`; `native` is only for\nthe self-test.",
"type": [
"string",
"null"
]
},
"timeout_ms": {
"description": "How long to wait for the element to become actionable, in milliseconds (default 10000).",
"type": [
"integer",
"null"
],
"minimum": 0
},
"force": {
"description": "Skip the checks except \"attached\" (tests of disabled states).",
"type": [
"boolean",
"null"
]
},
"window": {
"description": "A window of this project by id.",
"type": [
"integer",
"null"
],
"minimum": 0
}
}
}