element_swipe_to
Swipes a swiper element to a specified slide index in a WeChat mini-program, enabling programmatic navigation to target content.
Instructions
滑动 swiper 到指定滑块
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>",
"index": "<index>"
},
"name": "element_swipe_to"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| index | Yes | 目标滑块 index(仅 swiper 可用) | |
| element_id | Yes |