CoAgent8
    Preparing search index...

    Function openBrowser

    • Opens a URL in the user's default browser across platforms. Waits a bounded time for the opener to exit and reports a launch error or a non-zero exit code through the warning callback. The opener's output is ignored.

      Parameters

      • url: string

        Destination web URL.

      • OptionalonWarning: (warning: string) => void

        Callback to receive sanitized launch warnings.

      • Optionaloptions: OpenBrowserOptions

        Optional overrides for timeout or spawn function.

      Returns Promise<boolean>

      Promise resolving to false if a warning was reported, true otherwise.