Snapshot screen UI
snapshotReturns a text outline of the current screen's accessibility tree, letting you find exact labels to tap and verify the screen after a tap; read-only and masked on sensitive screens.
Instructions
Return a text outline of the current screen's accessibility tree, one line per visible element: [ref] Class "label" {click,edit,focused,disabled} (x,y), where x,y is the element's center in screen pixels. Use it to find the exact label to pass to tap_label and to verify the screen after a tap; use foreground for just the app name. Read-only. Password fields are masked, and the call is refused with an error on sign-in, password or recovery screens. Output can still contain private on-screen text, so treat it as sensitive.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "snapshot"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| serial | No | ADB serial of the target device, as returned by list_devices. Required when the server has no --device scope; when scoped, omit it or pass the same serial (any other serial is rejected). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |