swipe
Perform a screen drag using ratio-based start and end coordinates, capture a screenshot, and register a tracked UI audit step for evaluation.
Instructions
Swipe on screen (ratio 0-1). Automatically captures a screenshot and registers a tracked step. After this call, evaluate the screenshot across all required dimensions before moving to the next action.
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": {
"startX": "<startX>",
"startY": "<startY>",
"endX": "<endX>",
"endY": "<endY>",
"caseName": "<caseName>",
"stepIndex": "<stepIndex>",
"description": "<description>",
"expectedOutcome": "<expectedOutcome>"
},
"name": "swipe"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| endX | Yes | End horizontal ratio (0-1) | |
| endY | Yes | End vertical ratio (0-1) | |
| startX | Yes | Start horizontal ratio (0-1) | |
| startY | Yes | Start vertical ratio (0-1) | |
| caseName | Yes | Name of the test case | |
| stepIndex | Yes | Current step index (e.g. 1, 2) | |
| description | Yes | Description of the action being performed | |
| expectedOutcome | Yes | What should happen after this swipe (e.g. 'List should scroll down to show more items') |