pinch
Perform a two-finger pinch, spread, or rotate gesture on Android emulators and iOS simulators to test zoom and rotation; Android supports a custom center, iOS uses screen center.
Instructions
A two-finger gesture: spread the fingers apart (scale above 1, zooms in), pinch them together (scale below 1) and / or turn them (rotateDeg). Android emulators: around any position. iOS simulators: around the centre of the screen only.
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": {
"device": "<device>"
},
"name": "pinch"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | No | Centre, horizontal (default 0.5), as a fraction of the screenshot: 0 is the left / top edge, 1 the right / bottom edge | |
| y | No | Centre, vertical (default 0.5), as a fraction of the screenshot: 0 is the left / top edge, 1 the right / bottom edge | |
| app | No | App id: Android package, Apple bundle identifier; on "mac" the bundle identifier or app name (required there) | |
| scale | No | How far the fingers end from each other compared to the start: 2 spreads to double, 0.5 pinches to half. Default 1 | |
| device | Yes | Device id (or exact name) from the devices tool | |
| rotateDeg | No | Turn the fingers by this many degrees, clockwise. Default 0 | |
| durationMs | No | How long the gesture takes. Default 500 | |
| screenshotAfterMs | No | If set, wait this many milliseconds after the action and return a screenshot too |