swipe
Execute a swipe gesture on a mobile screen by defining start and end coordinates, along with duration, to simulate user interactions in app automation.
Instructions
Perform a swipe gesture on the screen
Input Schema
Name | Required | Description | Default |
---|---|---|---|
duration | No | Duration of the swipe in milliseconds (default: 800) | |
endX | Yes | Ending X coordinate | |
endY | Yes | Ending Y coordinate | |
startX | Yes | Starting X coordinate | |
startY | Yes | Starting Y coordinate |
Input Schema (JSON Schema)
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"duration": {
"description": "Duration of the swipe in milliseconds (default: 800)",
"type": "number"
},
"endX": {
"description": "Ending X coordinate",
"type": "number"
},
"endY": {
"description": "Ending Y coordinate",
"type": "number"
},
"startX": {
"description": "Starting X coordinate",
"type": "number"
},
"startY": {
"description": "Starting Y coordinate",
"type": "number"
}
},
"required": [
"startX",
"startY",
"endX",
"endY"
],
"type": "object"
}