eval
Execute JavaScript on a one-off page: loads url in a fresh browser context, optionally waits wait_secs for the page to settle, evaluates script (async/Promise supported) and returns {url, result}. Script-driven navigation (location.href, form submit) is drained and reflected in the returned url. Stateless — no cookies or page state shared with other calls; when the script needs prior page state or a login, use session_eval.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | The URL to load | |
| script | Yes | JavaScript code to execute (supports async/Promise) | |
| wait_secs | No | Seconds to wait before executing |