Skip to main content
Use execute_playwright_code to run Playwright/TypeScript automation code against a Kernel browser session. If you provide session_id, it uses that existing browser. If you omit session_id, it creates a browser and cleans it up after execution.
Use computer_action with the screenshot action instead of page.screenshot() in your code. For a comprehensive page state snapshot, use await page._snapshotForAI().

Parameters

Example

Returns: