How to perform swipe gesture using ADB command at LambdaTest?

How can I perform the swipe gesture using ADB command?

Hi Joe,

You can generate a swipe gesture by defining the coordinates of starting and ending point of the swipe.

params = {"command":"input-swipe", "startX":200,"startY":900,"endX": 200,"endY":300}
result = driver.execute_script("lambda-adb",params)