Skip to content

Open-source Python library for AI browser agents, plus Browser Use Cloud: stealth browsers and a hosted agent API.

fix(tools): restore SearchGoogleAction back-compat alias

LHMQ878ff8f6f10d56a
diff --git a/browser_use/tools/views.py b/browser_use/tools/views.py
index 65f41a129..2020229f9 100644
--- a/browser_use/tools/views.py
+++ b/browser_use/tools/views.py
@@ -54,7 +54,7 @@ class SearchAction(BaseModel):
# Backward compatibility alias
-SearchAction = SearchAction
+SearchGoogleAction = SearchAction
class NavigateAction(BaseModel):
diff --git a/tests/ci/infrastructure/test_registry_core.py b/tests/ci/infrastructure/test_registry_core.py
index 4c6ba83fe..36e1fabe6 100644
--- a/tests/ci/infrastructure/test_registry_core.py
+++ b/tests/ci/infrastructure/test_registry_core.py
@@ -511,6 +511,13 @@ class TestExistingToolsActions:
assert result3.extracted_content is not None
assert 'Input text: test input at index: 5' in result3.extracted_content
+ async def test_renamed_action_models_keep_old_names_importable(self):
+ """Renamed action params models must stay importable under their pre-rename names."""
+ from browser_use.tools.views import GoToUrlAction, NavigateAction, SearchAction, SearchGoogleAction
+
+ assert SearchGoogleAction is SearchAction
+ assert GoToUrlAction is NavigateAction
+
async def test_pydantic_vs_individual_params_consistency(self, registry, browser_session):
"""Test that pydantic and individual parameter patterns produce consistent results"""