Get Webview Computed Style
webview_get_computed_styleRetrieve computed CSS styles and bounding box for any element in a mobile WebView using a CSS selector, enabling precise UI verification and layout debugging.
Instructions
取 webview 内某元素的 computed CSS + 包围盒(getComputedStyle)。
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>",
"selector": "<selector>"
},
"name": "webview_get_computed_style"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| props | No | CSS 属性名数组,默认常用集 | |
| device | Yes | 目标设备 serial(同 mobile_list_available_devices 的 id) | |
| selector | Yes | CSS 选择器 |