previewapk_observe
Captures the current Android screen as a compact numbered snapshot with app, keyboard, size, and UI elements, returning a snapshot_id for safe element taps without a screenshot.
Instructions
Read the current screen as a compact numbered snapshot: foreground app, keyboard state, screen size, and the useful elements (ref, type, text, desc, id, pixel bounds/center, state flags) in reading order — plus the same snapshot as compact text. Much cheaper than a screenshot and cheaper than the full hierarchy. Keep the snapshot_id: previewapk_tap with ref + snapshot_id taps an element from it safely (stale_snapshot if the screen changed). Set screenshot=true to also get the frame as an image.
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": "previewapk_observe"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scale | No | screenshot scale, e.g. 0.5 (only with screenshot=true) | |
| device | No | ||
| screenshot | No |