ui.snapshot
Capture a compact accessibility snapshot of the current Android screen, labeling interactive elements with handles for UI inspection and click/text operations.
Instructions
读屏默认首选:a11y 语义裁剪快照,元素编号 e0/e1/...(token 约为 ui.dump 的 1/10)。k 类型 btn/input/toggle/scroll/icon/text;i=可交互 e=可输入 s=可滚动 v=开关态。用 ui.click_handle/ui.text_handle 按句柄操作
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": "ui.snapshot"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pkg | No | 缺省取当前前台应用 | |
| max_elements | No | ||
| include_bounds | No |