android.input.longPress
Simulate a long press on Android devices at specified coordinates for a set duration using scrcpy protocol or ADB fallback to automate UI interactions.
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 |