get_element_info
Retrieve UIA element properties and ranked selector suggestions for test automation, providing the best locator after finding an element.
Instructions
Retrieve all key UIA properties of an element and get ranked selector suggestions for test automation. Returns: Name, AutomationId, ClassName, ControlType, IsEnabled, and a prioritized list of selectors. ALWAYS call this after find_element when generating automated test code — it gives you the best locator to use. Selector reliability order: accessibility id (AutomationId) = highest → name → xpath → class name = lowest. For .NET/C# Appium: use MobileBy.AccessibilityId(automationId) when AutomationId is non-empty.
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": {
"elementId": "<elementId>"
},
"name": "get_element_info"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| elementId | Yes | Element ID returned by find_element |