heal_selector
Fix a CSS selector that no longer matches by inspecting the live page and returning up to three ranked, resilient Playwright locators with reasons.
Instructions
Fix a CSS selector that stopped matching. Looks at what is actually on the page right now and suggests up to 3 resilient Playwright locators (role/label/text first, CSS last), ranked with reasons.
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": {
"selector": "<selector>"
},
"name": "heal_selector"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| selector | Yes | The broken CSS selector, e.g. #submit-btn-old |