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.
| Capability | ui.ui_act |
|---|---|
| Area | Window and UI driver |
| Access | changes ide |
| Reaches | — |
| Rights | ui |
| Dry run | none |
Arguments
| Argument | Type | Description |
|---|---|---|
locator | any | The element: a locator (text or JSON form). Resolved again until it is actionable; more
than one match fails with ambiguous. |
element | integer | Or an element id from ui_find (fails with stale once the element is gone).minimum 0 |
actionrequired | string | click, context_click, hover, drag, scroll, scroll_into_view, press, type,
focus, select, expand, collapse, invoke, show_context_menu, increment,
decrement, set_value. |
button | string | click: left (default), right or middle. |
count | integer | click: 1 to 3 (default 1).minimum 0 · maximum 255 |
modifiers | array of string | click: held modifiers, as the keymap writes them (cmd, ctrl, alt, shift). |
position | any | Pointer actions: the point relative to the element's top left (default: its centre). |
to | any | drag: the target element (locator). |
offset | any | drag: an offset {x, y} instead of a target. |
dx | number | scroll: horizontal delta. |
dy | number | scroll: vertical delta. |
unit | string | scroll: lines (default) or pixels. |
keys | string | press: keys as the keymap writes them (cmd-shift-a, alt-f12, cmd-k cmd-s); without
a locator they go to the window. |
text | string | type: Unicode text, committed through the window's input handler (logged only as its
length). |
clear | boolean | type: select and delete the existing value first. |
value | string | set_value: the value. |
level | string | window (default for pointer, key and text actions) or semantic; native is only for
the self-test. |
timeout_ms | integer | How long to wait for the element to become actionable, in milliseconds (default 10000).minimum 0 |
force | boolean | Skip the checks except "attached" (tests of disabled states). |
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_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 } }}