browser_run_code_unsafe
Execute raw Playwright JavaScript snippets against the active page and receive their JSON results, enabling custom automation when unsafe mode is enabled.
Instructions
DANGEROUS: run a raw Playwright JavaScript snippet (async function body with page in scope) against the active page and return its JSON result. Disabled unless LAYA_ALLOW_UNSAFE_CODE=true.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | A JavaScript snippet run as an async function body with the Playwright `page` in scope, e.g. 'return await page.title();'. |