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
Update parameter dict
Magnus Müller84b07cce8cc3
diff --git a/browser_use/tools/service.py b/browser_use/tools/service.pyindex 322834656..05739dab7 100644--- a/browser_use/tools/service.py+++ b/browser_use/tools/service.py@@ -38,8 +38,8 @@ from browser_use.tools.views import (CloseTabAction,DoneAction,GetDropdownOptionsAction,- GoToUrlAction,InputTextAction,+ NavigateAction,NoParamsAction,ScrollAction,SearchAction,@@ -159,9 +159,9 @@ class Tools(Generic[Context]):@self.registry.action('',- param_model=GoToUrlAction,+ param_model=NavigateAction,)- async def navigate(params: GoToUrlAction, browser_session: BrowserSession):+ async def navigate(params: NavigateAction, browser_session: BrowserSession):try:# Dispatch navigation eventevent = browser_session.event_bus.dispatch(NavigateToUrlEvent(url=params.url, new_tab=params.new_tab))diff --git a/browser_use/tools/views.py b/browser_use/tools/views.pyindex 105530a8c..5e3a90786 100644--- a/browser_use/tools/views.py+++ b/browser_use/tools/views.py@@ -15,11 +15,15 @@ class SearchAction(BaseModel):SearchAction = SearchAction-class GoToUrlAction(BaseModel):+class NavigateAction(BaseModel):url: strnew_tab: bool = Field(default=False)+# Backward compatibility alias+GoToUrlAction = NavigateAction++class ClickElementAction(BaseModel):index: int = Field(ge=1, description='from browser_state')ctrl: bool | None = Field(