get
Read visible text or accessibility attributes from a snapshot ref or selector without changing the app; use text format for content or attrs for the element attribute map.
Instructions
Read text or accessibility attributes from a snapshot ref or selector without changing the app. Use format text for visible content or attrs for the element attribute map. Times out after 90s.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"format": "<format>"
},
"name": "get"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| raw | No | Use raw snapshot data during selector resolution. | |
| ref | No | Snapshot element ref such as @e12. Pass exactly one of ref or selector. | |
| udid | No | Apple device or simulator UDID. | |
| debug | No | Enable debug diagnostics. | |
| depth | No | Snapshot traversal depth. | |
| label | No | Optional human label for ref. | |
| scope | No | Snapshot scope selector used before resolution. | |
| device | No | Device name; ids go in udid or serial. | |
| format | Yes | ||
| 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, HarmonyOS, or Vega VVD serial. | |
| session | No | Session name. | |
| noRecord | No | Do not record this action. | |
| platform | No | Device platform. | |
| selector | No | Selector expression such as id="submit" or label="Sign in". Pass exactly one of ref or selector. | |
| includeCost | No | Add agent cost (cost.wallClockMs, …) to the result, returned as JSON text. | |
| deviceTarget | No | Device form factor. | |
| responseLevel | No | Result detail: digest (smallest) or full (largest), as JSON; default is compact text. | |
| mcpOutputFormat | No | Result text: compact optimized (default) or the full result as JSON (larger). |