find
Locate UI elements by text, label, value, role, or ID, then run actions like click, fill, or wait. Resolves devices across mobile, desktop, and TV platforms to inspect and debug apps.
Instructions
Find by text/label/value/role/id and run action Times out after 90s.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| raw | No | ||
| last | No | ||
| udid | No | iOS device UDID selector. | |
| debug | No | Enable debug diagnostics. | |
| depth | No | ||
| first | No | ||
| query | Yes | ||
| runId | No | Lease run identifier. | |
| value | No | ||
| action | No | ||
| device | No | Device name selector. | |
| record | No | Force-record this out-of-band observation into a repair-armed heal (mutually exclusive with noRecord). Authored replay steps are recorded automatically and never need this. On find, valid only for a read-only action. | |
| serial | No | Android device or Vega VVD serial selector. | |
| target | No | Alias for deviceTarget on commands without a UI target field. Interaction commands reserve target for the UI element. | |
| tenant | No | Remote tenant identifier. | |
| leaseId | No | Existing lease identifier. | |
| locator | No | ||
| session | No | Agent-device session name. | |
| noRecord | No | Do not record this action. | |
| platform | No | Platform selector used to resolve a device. | |
| timeoutMs | No | ||
| includeCost | No | Include per-command agent-cost (cost.wallClockMs, …) in structuredContent. Defaults to off; the default response shape is unchanged. | |
| deviceTarget | No | Device target form. Maps to the CLI --target flag. | |
| responseLevel | No | Response verbosity: token-cheap digest / default (today) / full. Defaults to default; the default response shape is unchanged. | |
| mcpOutputFormat | No | MCP text content format. Defaults to optimized agent-friendly text; use json for JSON text. Structured content is always returned separately. | |
| androidDeviceAllowlist | No | Android serial allowlist used for device resolution. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | No | Resolved x coordinate for mutating find actions. | |
| y | No | Resolved y coordinate for mutating find actions. | |
| ref | No | Snapshot ref without the @ prefix when the find action returns one. | |
| cost | No | ||
| node | No | Snapshot node for find get_attrs/get_text. | |
| text | No | Text value returned by find get_text. | |
| found | No | Whether a wait/exists/read-only find satisfied its condition. | |
| query | No | Query argument used for the find action. | |
| locator | No | Locator kind used for the find action. | |
| matches | No | Every match for the read-only find list action (#1625): { ref, node } each. | |
| message | No | Diagnostic message for mutating find actions. | |
| waitedMs | No | Milliseconds waited for a read-only find condition. | |
| refsGeneration | No | ADR 0014 ref frame epoch for read-only find actions. |