long_press
Simulate a press-and-hold gesture at specified Android screen coordinates to trigger context menus, drag actions, or hold interactions. Set x, y, and duration in milliseconds.
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": {
"x": "<x>",
"y": "<y>"
},
"name": "long_press"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | Yes | 长按位置的 x 坐标。 | |
| y | Yes | 长按位置的 y 坐标。 | |
| duration_ms | No | 长按持续时间(毫秒),默认 1000ms。 |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |