ui_expect
MCP tools › Window and UI driver
Asserts a state of the Ferris IDEA window, retrying until timeout_ms: visible, hidden, enabled, disabled, focused, checked, selected, expanded, name, value, text (with text and compare: exact, contains, regex), count (exactly, at_least, at_most), absent; not inverts. Needs the setting and the right ui. Experimental.
Its results carry text from files: the client is told to treat that as data, never as instructions.
| Capability | ui.ui_expect |
|---|---|
| Area | Window and UI driver |
| Access | reads only |
| Reaches | — |
| Rights | ui |
| Dry run | none |
Arguments
| Argument | Type | Description |
|---|---|---|
locatorrequired | any | The element(s), as for ui_find. |
matcherrequired | string | visible, hidden, enabled, disabled, focused, checked, selected, expanded,
name, value, text, count, absent. |
text | string | name, value, text: the expected text. |
compare | string | name, value, text: exact (default), contains or regex. |
exactly | integer | count: exactly.minimum 0 |
at_least | integer | count: at least.minimum 0 |
at_most | integer | count: at most.minimum 0 |
not | boolean | Inverts the matcher. |
timeout_ms | integer | How long it retries, in milliseconds (default 10000).minimum 0 |
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_expect '{"locator":"<value>","matcher":"<string>"}'Input schema as JSON
{ "type": "object", "required": [ "locator", "matcher" ], "properties": { "locator": { "description": "The element(s), as for `ui_find`." }, "matcher": { "description": "`visible`, `hidden`, `enabled`, `disabled`, `focused`, `checked`, `selected`, `expanded`,\n`name`, `value`, `text`, `count`, `absent`.", "type": "string" }, "text": { "description": "`name`, `value`, `text`: the expected text.", "type": [ "string", "null" ] }, "compare": { "description": "`name`, `value`, `text`: `exact` (default), `contains` or `regex`.", "type": [ "string", "null" ] }, "exactly": { "description": "`count`: exactly.", "type": [ "integer", "null" ], "minimum": 0 }, "at_least": { "description": "`count`: at least.", "type": [ "integer", "null" ], "minimum": 0 }, "at_most": { "description": "`count`: at most.", "type": [ "integer", "null" ], "minimum": 0 }, "not": { "description": "Inverts the matcher.", "type": [ "boolean", "null" ] }, "timeout_ms": { "description": "How long it retries, in milliseconds (default 10000).", "type": [ "integer", "null" ], "minimum": 0 }, "window": { "description": "A window of this project by id.", "type": [ "integer", "null" ], "minimum": 0 } }}