find_element
Locate UI elements on HarmonyOS devices by text, type, or ID to interact with app components during automation testing.
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": "find_element"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | No | ||
| device_id | No | ||
| window_id | No | ||
| element_id | No | ||
| hdc_server | No | ||
| bundle_name | No | ||
| element_type | No |