Open-source Python library for AI browser agents, plus Browser Use Cloud: stealth browsers and a hosted agent API.
Python ai-agentsai-toolsbrowser-agentbrowser-automationbrowser-usecdpcloud-browsercomputer-useheadless-browserllmmcpplaywrightpythonremote-browserstealth-browserweb-automationweb-scraping
style: format ensure_server function signature
Marcin965bc6819555
diff --git a/browser_use/skill_cli/main.py b/browser_use/skill_cli/main.pyindex 9141263f7..4704a563f 100755--- a/browser_use/skill_cli/main.py+++ b/browser_use/skill_cli/main.py@@ -68,7 +68,9 @@ def connect_to_server(session: str, timeout: float = 60.0) -> socket.socket:return sock-def ensure_server(session: str, browser: str, headed: bool, profile: str | None, api_key: str | None, cdp_url: str | None = None) -> bool:+def ensure_server(+ session: str, browser: str, headed: bool, profile: str | None, api_key: str | None, cdp_url: str | None = None+) -> bool:"""Start server if not running. Returns True if started."""# Check if server is already running and responsiveif is_server_running(session):