swipe
Perform custom drag gestures between two screen points to dismiss cards, pull-to-refresh, draw pattern locks, or drag sliders.
Instructions
Drag between two points, for gestures no named control covers.
Use scroll for ordinary page movement. Reach for this to dismiss a card,
pull to refresh, draw a pattern lock, or drag a slider.
Args: start_x: Horizontal pixel where the finger lands. start_y: Vertical pixel where the finger lands. end_x: Horizontal pixel where the finger lifts. end_y: Vertical pixel where the finger lifts. duration_ms: How long the drag takes. Longer is slower and more likely to be read as a drag rather than a fling.
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": {
"start_x": "<start_x>",
"start_y": "<start_y>",
"end_x": "<end_x>",
"end_y": "<end_y>"
},
"name": "swipe"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| end_x | Yes | Horizontal pixel where the drag ends. | |
| end_y | Yes | Vertical pixel where the drag ends. | |
| start_x | Yes | Horizontal pixel where the drag starts. | |
| start_y | Yes | Vertical pixel where the drag starts. | |
| duration_ms | No | How long the drag takes. Slower is more likely to be read as a drag than a fling. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |