pinch
Zoom iOS simulator screens in or out by simulating a two-finger gesture at specified coordinates and scale factor.
Instructions
Perform a pinch gesture (zoom in/out) at coordinates.
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_id": "<device_id>",
"x": "<x>",
"y": "<y>",
"scale": "<scale>"
},
"name": "pinch"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | Yes | Center X coordinate for pinch | |
| y | Yes | Center Y coordinate for pinch | |
| scale | Yes | Scale factor: <1.0 to zoom out, >1.0 to zoom in | |
| velocity | No | Pinch velocity in scale factor per second | |
| device_id | Yes | Simulator UDID |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |