generate_locators
Generate current-page locator candidates for UI element inspection, filtered by a literal query or custom XPath attributes across the active Appium session.
Instructions
Generate current-page locator candidates for inspection. Defaults: controls for UiAutomator2/XCUITest/Web; all elements except hierarchy for other native drivers.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | No | Case-insensitive literal substring of an element tag or attribute value (name, label, text, ID, etc.). Searches all element types, including hidden elements. Blank or omitted keeps the default driver-specific filter. | |
| sessionId | No | Session ID; defaults to the active session. | |
| xpathAttributes | No | Additional XPath attribute names in priority order, e.g. AutomationId or data-testid. Tried before built-in attributes; defaults remain as fallback. No namespace prefixes or XPath expressions. |