Get Webview DOM Outline
webview_dom_outlineRetrieve a truncated outerHTML outline of an element inside a mobile WebView to inspect and debug its DOM structure.
Instructions
取 webview 内某元素(默认 body)的 outerHTML 概要(截断,排错 DOM 结构用)。
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": {
"device": "<device>"
},
"name": "webview_dom_outline"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| device | Yes | 目标设备 serial(同 mobile_list_available_devices 的 id) | |
| maxChars | No | 截断长度,默认 4000 | |
| selector | No | CSS 选择器,默认 body |