find_elements
Search for UI elements in a mobile app using locators like XPath, accessibility ID, or text. Specify strategy or use auto-detection to find matching elements.
Instructions
Recherche des éléments dans l'application.
Args: locator: Le locator à chercher. Exemples : - "//*[@content-desc='MonBouton']" (XPath) - "accessibility_id=MonBouton" - "id=com.exemple.app:id/mon_bouton" - "predicate=label == 'Valider'" (iOS) - "MonTexte" (recherche par texte dans tous les attributs) strategy: "auto" (détection automatique), "text_search", ou une stratégie explicite : xpath, accessibility_id, id, name, class, android (uiautomator), predicate, class_chain.
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": {
"locator": "<locator>"
},
"name": "find_elements"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| locator | Yes | ||
| strategy | No | auto |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |