frame_evaluate
Run JavaScript inside a same-origin iframe by specifying its URL pattern. Useful for automating actions within specific frames while avoiding cross-origin restrictions.
Instructions
Run JS inside an iframe matching URL pattern.
Same-origin frames only: cross-origin iframes (reCAPTCHA bframe, payment
widgets, third-party embeds) block contentWindow.eval and return an error.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| frame_url_pattern | Yes | ||
| expression | Yes |
Output Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |