swipe
Perform precise swipes on iOS simulators by defining exact coordinates and timing parameters. Use describe_ui for accuracy and avoid guessing from screenshots. Integrates with XcodeBuildMCP for streamlined testing.
Instructions
Swipe from one point to another. Use describe_ui for precise coordinates (don't guess from screenshots). Supports configurable timing.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
delta | No | ||
duration | No | ||
postDelay | No | ||
preDelay | No | ||
simulatorUuid | Yes | ||
x1 | Yes | ||
x2 | Yes | ||
y1 | Yes | ||
y2 | Yes |
Input Schema (JSON Schema)
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"delta": {
"minimum": 0,
"type": "number"
},
"duration": {
"minimum": 0,
"type": "number"
},
"postDelay": {
"minimum": 0,
"type": "number"
},
"preDelay": {
"minimum": 0,
"type": "number"
},
"simulatorUuid": {
"format": "uuid",
"type": "string"
},
"x1": {
"type": "integer"
},
"x2": {
"type": "integer"
},
"y1": {
"type": "integer"
},
"y2": {
"type": "integer"
}
},
"required": [
"simulatorUuid",
"x1",
"y1",
"x2",
"y2"
],
"type": "object"
}