{"name":"dom-change-diff","description":"DOM diff for two HTML snapshots of the same page or component, built for browser-automation scripts whose CSS selectors quietly break after a site redesign. Send before_html and after_html plus the selectors your workflow watches, and get back per-selector added/removed/moved/attribute-changed status, stale DOM detection for targets that vanished, and selector stability hints: replacement selectors built from an element's id, data-testid, or aria-label so a broken automation step can self-repair. Use it as a browser workflow repair tool, a selector-stability checker, or a pre-flight check before re-running a scraping or RPA script against a site that may have changed.","price":"$0.01","method":"POST","input_schema":{"properties":{"before_html":{"type":"string","description":"The earlier/reference HTML snapshot of the page or component."},"after_html":{"type":"string","description":"The current HTML snapshot to compare against before_html."},"selectors":{"type":"array","items":{"type":"string"},"description":"Optional list of CSS selectors your automation depends on (e.g. '#login-btn', '.price'). Up to 50."}},"required":["before_html","after_html"]},"input_example":{"before_html":"<html><body><div id=\"login-btn\" data-testid=\"login\">Log in</div></body></html>","after_html":"<html><body><button data-testid=\"login\" aria-label=\"Log in\">Log in</button></body></html>","selectors":["#login-btn"]},"output_example":{"before_element_count":3,"after_element_count":3,"added_elements":1,"removed_elements":1,"selector_changes":[{"selector":"#login-btn","status":"removed","before_count":1,"after_count":0,"before_path":"html:nth-of-type(1)>body:nth-of-type(1)>div:nth-of-type(1)","stable_selector_hint":"[data-testid=\"login\"]"}],"has_changes":true},"x402_payment_required":true,"x402_facilitator":"https://api.cdp.coinbase.com/platform/v2/x402"}