element_size
Retrieve the width and height of a UI element in a WeChat mini-program using its element ID. Use this to verify layout dimensions or adapt automation based on element size.
Instructions
获取元素尺寸(宽高)
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": {
"element_id": "<element_id>"
},
"name": "element_size"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| element_id | Yes |