capture_ui
Captures an Android device’s screen, current focus, and UIAutomator hierarchy into a snapshot with node IDs, bounds, and artifact hashes for UI inspection and analysis.
Instructions
Capture an explicit Android device screen, current focus and UIAutomator hierarchy into a new snapshot. Returns node IDs, bounds and artifact hashes. Uses and deletes one owned temporary device XML file. Compose/WebView/custom rendering may expose only partial semantics.
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": {
"serial": "<serial>"
},
"name": "capture_ui"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| serial | Yes | ||
| package | No | ||
| analysis_project_id | No | Optional investigation to retain this tool result in. Does not prove target identity or causal relationships. |