Check locator
check_locatorCounts how many elements an Appium locator matches on a screen and reports whether it is visible. Accepts Python, Java, and @AndroidFindBy/@iOSXCUITFindBy locator formats.
Instructions
How many elements an Appium locator matches on a screen (1 = good) and whether it's visible. Accepts Python (AppiumBy.X, "v"), Java AppiumBy.x("v") and @AndroidFindBy / @iOSXCUITFindBy forms.
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": "check_locator"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| screen | No | ||
| locator | Yes |