Run JavaScript in the page
browser_evalRun JavaScript in the current browser page and return its JSON-serializable result; promises are awaited, and an isolated world is optional.
Instructions
Run JavaScript in the page and return its JSON-serialisable result. An expression returns its value; for statements, use return. Promises are awaited. Runs in the page's own world by default (sees its globals); world "isolated" keeps it apart. Needs Chrome's "Allow User Scripts" switch for Deputy; the error says how to turn it on.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | ||
| tabId | No | ||
| world | No |