ios_pinch
Two-finger pinch-to-zoom centred at (x,y) on an iOS device. scale > 1 zooms IN (fingers spread), scale < 1 zooms OUT (fingers converge); ~2 doubles, ~0.5 halves. Both fingers ride a vertical axis through the centre and are auto-clamped on-screen. Use on Maps, Photos, Safari, camera. Coordinates are screen points. Requires an active iOS automation session.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | Yes | Pinch centre X (screen points) | |
| y | Yes | Pinch centre Y (screen points) | |
| norm | No | If true, x/y (and path points) are 0..1 FRACTIONS of the screen — pass `pixelInScreenshot ÷ screenshotSize` directly (scale-free, matches the frontend, avoids point-guessing). Default false = iOS screen points. | |
| udid | Yes | iOS device UDID | |
| input | No | Input path. 'auto' (default) drives the gesture through the automation session. 'hid' drives it through the direct input path instead, which needs no automation session — it reports 'no HID available' on iOS 17.x or with no tunnel. | |
| scale | Yes | End/start finger-separation ratio: >1 zoom in, <1 zoom out (0.2–5) | |
| durationMs | No | Gesture duration in ms (default: 250) |