element_offset
Get the offset position of an element relative to the viewport. Use it to locate elements precisely when automating WeChat mini-programs.
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_offset"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| element_id | Yes |