Set browser launch flags
set_browser_flagsAdjust Chrome launch flags at runtime to disable the translate popup, block extensions, or set custom arguments. Restart Chrome to apply changes immediately.
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 |
|---|---|---|---|
| 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 |