Skip to content

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.

Capabilityui.ui_expect
AreaWindow and UI driver
Accessreads only
Reaches—
Rightsui
Dry runnone

Arguments

ArgumentTypeDescription
locatorrequiredanyThe element(s), as for ui_find.
matcherrequiredstringvisible, hidden, enabled, disabled, focused, checked, selected, expanded, name, value, text, count, absent.
textstringname, value, text: the expected text.
comparestringname, value, text: exact (default), contains or regex.
exactlyintegercount: exactly.minimum 0
at_leastintegercount: at least.minimum 0
at_mostintegercount: at most.minimum 0
notbooleanInverts the matcher.
timeout_msintegerHow long it retries, in milliseconds (default 10000).minimum 0
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_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
}
}
}