android_snapshot
Capture a compact Android UI node tree with focus metadata (up to 60 nodes) to inspect screens and enable deterministic UI automation.
Instructions
Capture a compact UI node tree (@e1..@eN, max 60 nodes) with focus metadata.
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": "android_snapshot"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| max_nodes | No | ||
| include_non_interactive | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | ||
| error | No | ||
| nodes | No | ||
| warning | No | ||
| expires_at | No | ||
| screen_size | No | ||
| snapshot_id | No | ||
| focused_app_package | No | ||
| current_focus_package | No |