device_rotate_gesture
Rotate a map or image on Android by simulating a two-finger gesture. Set center, degrees (positive clockwise), radius, and duration for precise control.
Instructions
Perform a two-finger rotation gesture (e.g. to rotate a map or image). Positive degrees = clockwise. Android only (uses UIAutomation, no root needed).
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": {
"deviceId": "<deviceId>",
"platform": "<platform>",
"centerX": "<centerX>",
"centerY": "<centerY>",
"degrees": "<degrees>"
},
"name": "device_rotate_gesture"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| radius | No | Distance of each finger from center in pixels (default 120) | |
| centerX | Yes | X center of rotation in screen pixels | |
| centerY | Yes | Y center of rotation in screen pixels | |
| degrees | Yes | Degrees to rotate. Positive = clockwise. | |
| deviceId | Yes | ||
| duration | No | Gesture duration in ms (default 500) | |
| platform | Yes |