gesture-rotate
Rotate on-screen content by sending a two-finger circular arc gesture at a specified center and angle range, useful for turning maps, images, or other rotateable UI elements.
Instructions
Send a two-finger circular arc gesture to rotate on-screen content by a specified angle. Two fingers are placed opposite each other at a fixed radius from the center, then swept from startAngle to endAngle degrees (endAngle > startAngle = clockwise). All positions and radii are normalized 0.0–1.0 (fractions of screen width/height, not pixels), same coordinate space as gesture-tap and gesture-swipe. Typical values: radius 0.15, startAngle 0, endAngle 90 for a 90° clockwise turn. Size the orbit with radius, or with radiusX and radiusY together (the pair overrides radius); one half of the pair alone, or none of the three, is rejected. A single radius traces a physical ellipse on a non-square screen (finger separation varies through the turn); for a physically circular orbit, pass radiusX and radiusY with radiusX·width = radiusY·height. Unlike gesture-pinch which moves fingers linearly to zoom, this orbits fingers in an arc to change orientation. Use when you need to rotate a map, image picker, or any rotateable UI element. Returns { rotated: true, timestampMs }. On physical iOS, reactivated: true = app was re-fronted; re-describe. Fails if the simulator-server / emulator backend is not reachable for the given device, or on a physical iPhone when the app is not drawn in portrait.
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": {
"udid": "<udid>",
"centerX": "<centerX>",
"centerY": "<centerY>",
"startAngle": "<startAngle>",
"endAngle": "<endAngle>"
},
"name": "gesture-rotate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| udid | Yes | Target device id from `list-devices` (iOS UDID or Android serial). | |
| radius | No | Distance from the center to each finger. | |
| centerX | Yes | Center of rotation, horizontal. | |
| centerY | Yes | Center of rotation, vertical. | |
| radiusX | No | Finger distance along the horizontal axis, as a fraction of screen WIDTH. | |
| radiusY | No | Finger distance along the vertical axis, as a fraction of screen HEIGHT. | |
| endAngle | Yes | Ending angle in degrees. | |
| durationMs | No | Total gesture duration in milliseconds (default 300) | |
| startAngle | Yes | Starting angle in degrees (0 = right, 90 = down) |