mobile_swipe
Perform a swipe gesture on a mobile device by specifying start and end pixel coordinates. Provide the device serial number to execute the action.
Instructions
Swipe from one point to another.
Args: serialno: The mobile device serialno, from list_devices. x1: Start X coordinate in device pixels. y1: Start Y coordinate in device pixels. x2: End X coordinate in device pixels. y2: End Y coordinate in device pixels.
Returns: JSON response from the API.
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": {
"serialno": "<serialno>",
"x1": "<x1>",
"y1": "<y1>",
"x2": "<x2>",
"y2": "<y2>"
},
"name": "mobile_swipe"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x1 | Yes | ||
| x2 | Yes | ||
| y1 | Yes | ||
| y2 | Yes | ||
| serialno | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |