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
simplify open_tab action
Nick Sweeting50ade97062af
diff --git a/browser_use/controller/service.py b/browser_use/controller/service.pyindex f22bfc94d..16a8f59c6 100644--- a/browser_use/controller/service.py+++ b/browser_use/controller/service.py@@ -204,9 +204,7 @@ class Controller(Generic[Context]):logger.info(msg)return ActionResult(extracted_content=msg, include_in_memory=True)- @self.registry.action(- 'Open url in new tab, (for Google search use search_google action instead)', param_model=OpenTabAction- )+ @self.registry.action('Open a specific url in new tab', param_model=OpenTabAction)async def open_tab(params: OpenTabAction, browser_session: BrowserSession):await browser_session.create_new_tab(params.url)msg = f'🔗 Opened new tab with {params.url}'diff --git a/browser_use/dom/service.py b/browser_use/dom/service.pyindex 3edffa1bb..402d8e16e 100644--- a/browser_use/dom/service.py+++ b/browser_use/dom/service.py@@ -120,7 +120,7 @@ class DomService:# Create concise summaryurl_short = self.page.url[:50] + '...' if len(self.page.url) > 50 else self.page.urllogger.debug(- '🔎 Ran buildDOMTree.js interactive element detection on: %s interactive=%d total=%d',+ '🔎 Ran buildDOMTree.js interactive element detection on: %s interactive=%d/%d',url_short,interactive_count,total_nodes,