android.input.longPress
Perform a long press action on Android devices by specifying coordinates and duration, enabling UI automation through scrcpy protocol or ADB fallback.
Instructions
Performs a long press at coordinates (x,y) for specified duration. Uses fast scrcpy control protocol when stream is active, otherwise falls back to adb shell input.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| serial | Yes | ||
| x | Yes | ||
| y | Yes | ||
| durationMs | No |