browser_run_code
Execute Playwright code snippets to automate browser interactions, test web applications, or extract data from web pages programmatically.
Instructions
Run Playwright code snippet
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | A JavaScript function containing Playwright code to execute. It will be invoked with a single argument, page, which you can use for any page interaction. For example: `async (page) => { await page.getByRole('button', { name: 'Submit' }).click(); return await page.title(); }` |