adb_input_pinch
Simulate a two-finger pinch or spread gesture on Android screens to zoom out or zoom in. Specify center point, start and end radius, angle, and duration for controlled multi-touch zooming.
Instructions
Perform a multi-touch pinch (zoom out) or spread (zoom in) gesture. Two fingers move symmetrically toward or away from a center point. Uses parallel swipe injection by default (universal, no root); when root is available, can use raw sendevent for true multi-touch MT protocol injection. The 'auto' method selects the best available approach.
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": {
"cx": "<cx>",
"cy": "<cy>",
"startRadius": "<startRadius>",
"endRadius": "<endRadius>"
},
"name": "adb_input_pinch"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cx | Yes | Center X coordinate of the pinch gesture | |
| cy | Yes | Center Y coordinate of the pinch gesture | |
| angle | No | Angle in degrees for the pinch axis (0=horizontal, 90=vertical, default 90) | |
| steps | No | Interpolation steps for sendevent method (5-60, default 20). More steps = smoother gesture | |
| device | No | Device serial | |
| method | No | Injection method: 'auto' (sendevent if root, else swipe), 'swipe' (parallel swipes, universal), 'sendevent' (raw MT protocol, requires root) | auto |
| endRadius | Yes | Ending distance (px) from center to each finger. Smaller than startRadius = pinch/zoom-out, larger = spread/zoom-in | |
| durationMs | No | Gesture duration in ms (100-5000, default 500) | |
| startRadius | Yes | Starting distance (px) from center to each finger |