element_scroll_to
Scroll a scroll-view to specified x, y coordinates by element ID, enabling precise UI testing in WeChat mini-programs.
Instructions
滚动 scroll-view 到指定位置
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>",
"x": "<x>",
"y": "<y>"
},
"name": "element_scroll_to"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | Yes | ||
| y | Yes | 滚动位置(仅 scroll-view 可用) | |
| element_id | Yes |