swipe
Simulate a swipe gesture on a HarmonyOS device for UI automation. Specify start and end coordinates, direction, or speed to test gesture-based interactions.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "swipe"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to_x | No | ||
| to_y | No | ||
| speed | No | ||
| from_x | No | ||
| from_y | No | ||
| device_id | No | ||
| direction | No | ||
| hdc_server | No |