element_scrollTo
Scroll a scroll-view component to specific coordinates within a WeChat Mini Program. Provide a CSS selector and x, y values to set the scroll position.
Instructions
滚动 scroll-view 组件到指定位置。仅适用于 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": {
"selector": "<selector>",
"x": "<x>",
"y": "<y>"
},
"name": "element_scrollTo"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| connection | No | ||
| selector | Yes | ||
| innerSelector | No | ||
| x | Yes | ||
| y | Yes |