toggle_display
Switch between headless and headed browser modes to handle CAPTCHAs and visual tasks. Use headed mode to see the browser window, then return to headless for normal automation.
Instructions
Toggle browser display mode between headless and headed. When encountering CAPTCHAs or issues requiring visual interaction, switch to headed mode (headless: false) to show the browser window. After resolving, switch back to headless mode (headless: true). When switching an existing single context to virtual or headed mode, the response includes a vncUrl field — open this URL in a browser to see and interact with the browser GUI. Check tabsInvalidated in the response: when true, recreate tabs; when false, existing tracked tabs remain usable and the override applies to future contexts.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| userId | Yes | User/session identifier | |
| headless | Yes | Display mode — false for headed, true for headless, "virtual" for virtual display |