safari_verify_state
Verify the internal framework state of an editor matches the expected value after filling, preventing stale data submission on critical forms like Featured.com, LinkedIn, Medium, or Reddit.
Instructions
Verify the framework-level state of an editor/input matches the expected value. Returns JSON {match, mode, actual, expected, hint?}. Modern editors (ProseMirror, Lexical, Closure, React-controlled inputs) maintain state separately from the DOM — .value or .textContent may show new text while the internal store still holds old data, so a Submit click sends stale data. Call this AFTER safari_fill and BEFORE clicking Submit on critical forms (Featured.com, LinkedIn share, Medium, Reddit).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| selector | Yes | CSS selector of the editor/input to verify | |
| expected | Yes | Expected value or text fragment that should appear in framework state |