diff_page_source
Compare two HTML strings structurally to detect DOM changes, including added or removed nodes, attribute changes, and text differences.
Instructions
Compare two HTML strings structurally and return the differences (added nodes, removed nodes, attribute changes, text changes). Use this to detect DOM changes after an action.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| beforeHtml | Yes | HTML string captured before action | |
| afterHtml | Yes | HTML string captured after action | |
| tabId | No | Target tab ID (defaults to currently active tab) | |
| apiKey | No | API key for authentication if enabled |