drag
Performs a drag gesture on a HarmonyOS device from one point to another, with configurable speed for UI automation.
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": "drag"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to_x | No | ||
| to_y | No | ||
| speed | No | ||
| from_x | No | ||
| from_y | No | ||
| device_id | No | ||
| hdc_server | No |