browser.eval_js
Execute JavaScript in the current page to extract data or interact with elements. Ideal for DOM queries and custom scripting without dedicated tools.
Instructions
Execute a JavaScript expression in the current page context and return the result. Use for DOM queries, value extraction, or lightweight scripting that has no dedicated tool.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| session_id | Yes | ||
| expression | Yes |