Set browser launch flags
set_browser_flagsChange Chrome's launch flags at runtime and view current ones. Apply immediately by restarting Chrome or defer to next start.
Instructions
Change Chrome's launch flags at runtime, and show the current ones.
Call with no arguments at all to just read the effective configuration — that form changes nothing.
These are launch-time flags, so applying them restarts Chrome and closes every open page; on an ephemeral profile that also drops its cookies. Values set here override the NODRIVER_ENABLE_* environment variables.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| browser | No | Which browser to act on. Each name is an independent Chrome, created on first use. Omit for the shared default; parallel agents each need their own name. | default |
| restart | No | Restart Chrome now so the flags take effect, closing all open pages. Default true; false defers them to the next browser start. | |
| translate | No | True allows Chrome's Google Translate popup, false suppresses it. Omit to leave unchanged. Suppressed by default, because the popup covers page content and swallows clicks. | |
| extensions | No | True allows externally-installed Chrome extensions, false blocks them. Omit to leave unchanged. Blocked by default, so no "an extension requires your attention" prompt appears. manage_extensions offers the same switch plus listing and loading. | |
| extra_args | No | Replace the set of extra Chrome launch flags with this list, e.g. ["--lang=de-DE", "--window-size=1280,800"]. A leading "--" is added if missing. Pass [] to clear them, omit to leave unchanged. This replaces the list rather than appending to it. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |