pinch
Performs a two-finger zoom gesture centered at screenshot coordinates (x,y); set scale >1 to zoom in or <1 to zoom out on a connected Android device.
Instructions
Two-finger pinch centred at (x,y). Needs the scrcpy backend (see device_status).
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": {
"x": "<x>",
"y": "<y>",
"scale": "<scale>"
},
"name": "pinch"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | Yes | x in screenshot space | |
| y | Yes | y in screenshot space | |
| scale | Yes | >1 zoom in, <1 zoom out | |
| duration_ms | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |