element_touch
Simulate touch interactions on WeChat mini-program elements by specifying element ID and event type (touchstart, touchmove, or touchend). Include optional touch points for precise control.
Instructions
触发元素触摸事件(touchstart / touchmove / touchend)
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>",
"type": "<type>"
},
"name": "element_touch"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | Yes | 触摸事件类型 | |
| touches | No | 触摸点信息数组,如 [{identifier, pageX, pageY}] | |
| element_id | Yes | ||
| changedTouches | No | 变化的触摸点信息数组 |