browser_run_code
Execute a JavaScript async function in the browser that receives the page object, enabling direct automation of any browser task.
Instructions
Run a Playwright code snippet. The function receives page as its argument. Example: async (page) => { await page.goto('https://example.com'); return await page.title(); }
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | A JavaScript async function string that receives `page` as argument |