pub async fn resolve_browser(
browser_arg: Option<String>,
) -> Result<ResolvedBrowser>Expand description
Resolution order: positional arg / BROWSER_CONTROL env (arg wins, env is
the fallback — both are merged by clap into browser_arg) > persisted
default (browser-control set default ...) > most recent live browser >
start the default installed browser.
MCP must be recoverable by the agent using it. Unlike short-lived CLI
commands, the server cannot exit before exposing tools such as
browser_start / browser_select, so the no-explicit-selection path picks
or starts a usable browser.