set_stealth
Toggle stealth for a browser session to pass CDP-based bot gates during navigation; disable afterward to restore console capture and page-global evaluation.
Instructions
Toggle stealth for a session. enabled: true disables the CDP Runtime domain (removes the Runtime.enable automation tell that anti-bot systems like Cloudflare detect) — load/navigate pages in this mode to pass CDP-based bot gates; the cost is no console capture and evaluate runs in an isolated world (can't read page globals like window.dataLayer). enabled: false re-enables Runtime: console capture + main-world evaluate (reads page globals) return, but the CDP tell is present. Typical flow: set_stealth(true) → navigate → set_stealth(false) → evaluate. Leave it off for sites without bot detection.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| enabled | Yes | true turns stealth on, false turns it off. | |
| sessionId | Yes | The id returned by open_browser_session. Errors if no open session has it. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| stealth | Yes |