long_press_element
Simulate a long press on a UI element by coordinates, element handle, or text for interaction testing on HarmonyOS devices.
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": "long_press_element"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | No | ||
| y | No | ||
| text | No | ||
| device_id | No | ||
| element_id | No | ||
| hdc_server | No | ||
| bundle_name | No | ||
| element_type | No | ||
| element_handle | No |