Heal locator
heal_locatorFinds the intended element when a locator fails or matches several elements and suggests a verified replacement with a confidence score and alternatives; never edits files.
Instructions
For a locator that no longer matches (or matches several elements), find the intended element on the screen and suggest a verified replacement with a confidence score, reasons, the runner-up and alternatives (accessibility ids preferred). screen: the page source saved when the test failed (see run_tests), or omit for the live device. Never edits files.
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": "heal_locator"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lang | No | ||
| screen | No | ||
| locator | Yes |