Evaluate JS in the page
browser_evaluateEvaluate a JavaScript expression in a Firefox page and return its JSON value, awaiting promises. Use it to inspect or modify page state, treating changes as writes.
Instructions
Run an expression in the page and return its value (JSON). Promises are awaited. It can change the page, so treat it as a write.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| context | No | Tab context id (default: the active tab) | |
| expression | Yes | JavaScript expression to evaluate |