ui_find
MCP tools › Window and UI driver
Finds elements of the Ferris IDEA window by what a user perceives: role=button[name="Commit"], id=project-tree >> role=treeitem[name~="main"], text="No problems", filters [enabled], [checked=false], [nth=1], or the JSON form {"role": "button", "name": "Commit"}. Returns count and matches (id, role, name, test id, masked value, states, bounds, actions, effects). wait waits for the first match. 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_find |
|---|---|
| Area | Window and UI driver |
| Access | reads only |
| Reaches | — |
| Rights | ui |
| Dry run | none |
Arguments
| Argument | Type | Description |
|---|---|---|
locatorrequired | any | What to find: role=button[name="Commit"], id=tab-0, text="No problems",
name~="…" for a substring, name=/…/ for a regular expression, >> for "inside",
filters [enabled], [checked=false], [nth=1]; or the JSON form. |
wait | boolean | Wait for the first match (default false). |
timeout_ms | integer | How long wait waits, in milliseconds (default 10000, at most 180000).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_find '{"locator":"<value>"}'Input schema as JSON
{ "type": "object", "required": [ "locator" ], "properties": { "locator": { "description": "What to find: `role=button[name=\"Commit\"]`, `id=tab-0`, `text=\"No problems\"`,\n`name~=\"…\"` for a substring, `name=/…/` for a regular expression, `>>` for \"inside\",\nfilters `[enabled]`, `[checked=false]`, `[nth=1]`; or the JSON form." }, "wait": { "description": "Wait for the first match (default false).", "type": [ "boolean", "null" ] }, "timeout_ms": { "description": "How long `wait` waits, in milliseconds (default 10000, at most 180000).", "type": [ "integer", "null" ], "minimum": 0 }, "window": { "description": "A window of this project by id.", "type": [ "integer", "null" ], "minimum": 0 } }}