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
Rename controller file to tools
Magnus Müllere89e78842ce1
diff --git a/browser_use/__init__.py b/browser_use/__init__.pyindex 57f9a329a..4437b5fe7 100644--- a/browser_use/__init__.py+++ b/browser_use/__init__.py@@ -50,7 +50,6 @@ if TYPE_CHECKING:from browser_use.agent.views import ActionModel, ActionResult, AgentHistoryListfrom browser_use.browser import BrowserProfile, BrowserSessionfrom browser_use.browser import BrowserSession as Browser- from browser_use.controller.service import Toolsfrom browser_use.dom.service import DomServicefrom browser_use.llm.anthropic.chat import ChatAnthropicfrom browser_use.llm.azure.chat import ChatAzureOpenAI@@ -58,6 +57,7 @@ if TYPE_CHECKING:from browser_use.llm.groq.chat import ChatGroqfrom browser_use.llm.ollama.chat import ChatOllamafrom browser_use.llm.openai.chat import ChatOpenAI+ from browser_use.tools.service import Tools# Lazy imports mapping - only import when actually accesseddiff --git a/browser_use/agent/service.py b/browser_use/agent/service.pyindex 5b08a045e..5fd57c313 100644--- a/browser_use/agent/service.py+++ b/browser_use/agent/service.py@@ -58,14 +58,14 @@ from browser_use.agent.views import (from browser_use.browser.session import DEFAULT_BROWSER_PROFILEfrom browser_use.browser.views import BrowserStateSummaryfrom browser_use.config import CONFIG-from browser_use.controller.registry.views import ActionModel-from browser_use.controller.service import Toolsfrom browser_use.dom.views import DOMInteractedElementfrom browser_use.filesystem.file_system import FileSystemfrom browser_use.observability import observe, observe_debugfrom browser_use.sync import CloudSyncfrom browser_use.telemetry.service import ProductTelemetryfrom browser_use.telemetry.views import AgentTelemetryEvent+from browser_use.tools.registry.views import ActionModel+from browser_use.tools.service import Toolsfrom browser_use.utils import (_log_pretty_path,get_browser_use_version,diff --git a/browser_use/agent/views.py b/browser_use/agent/views.pyindex 0a4afeb29..927667f8c 100644--- a/browser_use/agent/views.py+++ b/browser_use/agent/views.py@@ -13,7 +13,6 @@ from uuid_extensions import uuid7strfrom browser_use.agent.message_manager.views import MessageManagerStatefrom browser_use.browser.views import BrowserStateHistory-from browser_use.controller.registry.views import ActionModelfrom browser_use.dom.views import DEFAULT_INCLUDE_ATTRIBUTES, DOMInteractedElement, DOMSelectorMap# from browser_use.dom.history_tree_processor.service import (@@ -25,6 +24,7 @@ from browser_use.dom.views import DEFAULT_INCLUDE_ATTRIBUTES, DOMInteractedElemefrom browser_use.filesystem.file_system import FileSystemStatefrom browser_use.llm.base import BaseChatModelfrom browser_use.tokens.views import UsageSummary+from browser_use.tools.registry.views import ActionModelclass AgentSettings(BaseModel):diff --git a/browser_use/integrations/gmail/actions.py b/browser_use/integrations/gmail/actions.pyindex 60deeb801..601ecd154 100644--- a/browser_use/integrations/gmail/actions.py+++ b/browser_use/integrations/gmail/actions.py@@ -9,7 +9,7 @@ import loggingfrom pydantic import BaseModel, Fieldfrom browser_use.agent.views import ActionResult-from browser_use.controller.service import Tools+from browser_use.tools.service import Toolsfrom .service import GmailServicediff --git a/browser_use/mcp/client.py b/browser_use/mcp/client.pyindex fbddb32bd..3f282cddc 100644--- a/browser_use/mcp/client.py+++ b/browser_use/mcp/client.py@@ -30,9 +30,9 @@ from typing import Anyfrom pydantic import BaseModel, ConfigDict, Field, create_modelfrom browser_use.agent.views import ActionResult-from browser_use.controller.registry.service import Registry-from browser_use.controller.service import Toolsfrom browser_use.telemetry import MCPClientTelemetryEvent, ProductTelemetry+from browser_use.tools.registry.service import Registry+from browser_use.tools.service import Toolsfrom browser_use.utils import get_browser_use_versionlogger = logging.getLogger(__name__)diff --git a/browser_use/mcp/controller.py b/browser_use/mcp/controller.pyindex f85f0a178..17ffa11e8 100644--- a/browser_use/mcp/controller.py+++ b/browser_use/mcp/controller.py@@ -11,7 +11,7 @@ from typing import Anyfrom pydantic import Field, create_modelfrom browser_use.agent.views import ActionResult-from browser_use.controller.registry.service import Registry+from browser_use.tools.registry.service import Registrylogger = logging.getLogger(__name__)diff --git a/browser_use/mcp/server.py b/browser_use/mcp/server.pyindex 62cfb1e2d..23865c04c 100644--- a/browser_use/mcp/server.py+++ b/browser_use/mcp/server.py@@ -78,9 +78,9 @@ _configure_mcp_server_logging()from browser_use import ActionModel, Agentfrom browser_use.browser import BrowserProfile, BrowserSessionfrom browser_use.config import get_default_llm, get_default_profile, load_browser_use_config-from browser_use.controller.service import Toolsfrom browser_use.filesystem.file_system import FileSystemfrom browser_use.llm.openai.chat import ChatOpenAI+from browser_use.tools.service import Toolslogger = logging.getLogger(__name__)diff --git a/browser_use/controller/registry/service.py b/browser_use/tools/registry/service.pysimilarity index 99%rename from browser_use/controller/registry/service.pyrename to browser_use/tools/registry/service.pyindex c7ee2b3bd..c14b82104 100644--- a/browser_use/controller/registry/service.py+++ b/browser_use/tools/registry/service.py@@ -11,16 +11,16 @@ from typing import Any, Generic, Optional, TypeVar, Union, get_args, get_originfrom pydantic import BaseModel, Field, RootModel, create_modelfrom browser_use.browser import BrowserSession-from browser_use.controller.registry.views import (+from browser_use.filesystem.file_system import FileSystem+from browser_use.llm.base import BaseChatModel+from browser_use.observability import observe_debug+from browser_use.telemetry.service import ProductTelemetry+from browser_use.tools.registry.views import (ActionModel,ActionRegistry,RegisteredAction,SpecialActionParameters,)-from browser_use.filesystem.file_system import FileSystem-from browser_use.llm.base import BaseChatModel-from browser_use.observability import observe_debug-from browser_use.telemetry.service import ProductTelemetryfrom browser_use.utils import is_new_tab_page, match_url_with_domain_pattern, time_execution_asyncContext = TypeVar('Context')diff --git a/browser_use/controller/registry/views.py b/browser_use/tools/registry/views.pysimilarity index 100%rename from browser_use/controller/registry/views.pyrename to browser_use/tools/registry/views.pydiff --git a/browser_use/controller/service.py b/browser_use/tools/service.pysimilarity index 99%rename from browser_use/controller/service.pyrename to browser_use/tools/service.pyindex 84e2fb886..6a3265e41 100644--- a/browser_use/controller/service.py+++ b/browser_use/tools/service.py@@ -27,8 +27,13 @@ from browser_use.browser.events import (UploadFileEvent,)from browser_use.browser.views import BrowserError-from browser_use.controller.registry.service import Registry-from browser_use.controller.views import (+from browser_use.dom.service import EnhancedDOMTreeNode+from browser_use.filesystem.file_system import FileSystem+from browser_use.llm.base import BaseChatModel+from browser_use.llm.messages import UserMessage+from browser_use.observability import observe_debug+from browser_use.tools.registry.service import Registry+from browser_use.tools.views import (ClickElementAction,CloseTabAction,DoneAction,@@ -44,11 +49,6 @@ from browser_use.controller.views import (SwitchTabAction,UploadFileAction,)-from browser_use.dom.service import EnhancedDOMTreeNode-from browser_use.filesystem.file_system import FileSystem-from browser_use.llm.base import BaseChatModel-from browser_use.llm.messages import UserMessage-from browser_use.observability import observe_debugfrom browser_use.utils import _log_pretty_url, time_execution_synclogger = logging.getLogger(__name__)diff --git a/browser_use/controller/views.py b/browser_use/tools/views.pysimilarity index 100%rename from browser_use/controller/views.pyrename to browser_use/tools/views.pydiff --git a/examples/custom-functions/save_to_file_hugging_face.py b/examples/custom-functions/save_to_file_hugging_face.pyindex 5c65dfcb9..3283a0f9f 100644--- a/examples/custom-functions/save_to_file_hugging_face.py+++ b/examples/custom-functions/save_to_file_hugging_face.py@@ -12,7 +12,7 @@ from pydantic import BaseModelfrom browser_use import ChatOpenAIfrom browser_use.agent.service import Agent-from browser_use.controller.service import Tools+from browser_use.tools.service import Tools# Initialize controller firstcontroller = Tools()diff --git a/examples/ui/command_line.py b/examples/ui/command_line.pyindex 49fdecf0d..d9291cfed 100644--- a/examples/ui/command_line.py+++ b/examples/ui/command_line.py@@ -26,7 +26,7 @@ load_dotenv()from browser_use import Agentfrom browser_use.browser import BrowserSession-from browser_use.controller.service import Tools+from browser_use.tools.service import Toolsdef get_llm(provider: str):diff --git a/examples/ui/streamlit_demo.py b/examples/ui/streamlit_demo.pyindex 4580eb73f..f9d3927b2 100644--- a/examples/ui/streamlit_demo.py+++ b/examples/ui/streamlit_demo.py@@ -19,7 +19,7 @@ import streamlit as st # type: ignorefrom browser_use import Agentfrom browser_use.browser import BrowserSession-from browser_use.controller.service import Tools+from browser_use.tools.service import Toolsif os.name == 'nt':asyncio.set_event_loop_policy(asyncio.WindowsProactorEventLoopPolicy())diff --git a/examples/use-cases/check_appointment.py b/examples/use-cases/check_appointment.pyindex e41fa5bd1..a9c5e050f 100644--- a/examples/use-cases/check_appointment.py+++ b/examples/use-cases/check_appointment.py@@ -14,7 +14,7 @@ from pydantic import BaseModelfrom browser_use import ChatOpenAIfrom browser_use.agent.service import Agent-from browser_use.controller.service import Tools+from browser_use.tools.service import Toolsif not os.getenv('OPENAI_API_KEY'):raise ValueError('OPENAI_API_KEY is not set. Please add it to your environment variables.')diff --git a/tests/ci/conftest.py b/tests/ci/conftest.pyindex a1d064f21..ca41e9665 100644--- a/tests/ci/conftest.py+++ b/tests/ci/conftest.py@@ -20,9 +20,9 @@ socketserver.ThreadingMixIn.block_on_close = Falsesocketserver.ThreadingMixIn.daemon_threads = Truefrom browser_use.agent.views import AgentOutput-from browser_use.controller.service import Toolsfrom browser_use.llm import BaseChatModelfrom browser_use.llm.views import ChatInvokeCompletion+from browser_use.tools.service import Tools# Load environment variables before any importsload_dotenv()diff --git a/tests/ci/test_agent_sensitive_data.py b/tests/ci/test_agent_sensitive_data.pyindex f9312d784..d9cadbc97 100644--- a/tests/ci/test_agent_sensitive_data.py+++ b/tests/ci/test_agent_sensitive_data.py@@ -3,10 +3,10 @@ from pydantic import BaseModel, Fieldfrom browser_use.agent.message_manager.service import MessageManagerfrom browser_use.agent.views import MessageManagerState-from browser_use.controller.registry.service import Registryfrom browser_use.filesystem.file_system import FileSystemfrom browser_use.llm import SystemMessage, UserMessagefrom browser_use.llm.messages import ContentPartTextParam+from browser_use.tools.registry.service import Registryfrom browser_use.utils import is_new_tab_page, match_url_with_domain_patterndiff --git a/tests/ci/test_browser_event_ClickElementEvent.py b/tests/ci/test_browser_event_ClickElementEvent.pyindex bf3be7ed0..aecb3a2d8 100644--- a/tests/ci/test_browser_event_ClickElementEvent.py+++ b/tests/ci/test_browser_event_ClickElementEvent.py@@ -8,8 +8,8 @@ from pytest_httpserver import HTTPServerfrom browser_use.agent.views import ActionResultfrom browser_use.browser import BrowserSessionfrom browser_use.browser.profile import BrowserProfile-from browser_use.controller.service import Tools-from browser_use.controller.views import (+from browser_use.tools.service import Tools+from browser_use.tools.views import (ClickElementAction,GoToUrlAction,UploadFileAction,@@ -1212,8 +1212,8 @@ class TestClickElementEvent:from pathlib import Pathfrom browser_use.browser.views import BrowserError- from browser_use.controller.views import UploadFileActionfrom browser_use.filesystem.file_system import FileSystem+ from browser_use.tools.views import UploadFileAction# Create a temporary test file that's NOT in available_file_pathswith tempfile.NamedTemporaryFile(mode='w', suffix='.txt', delete=False) as temp_file:diff --git a/tests/ci/test_browser_event_GetDropdownOptionsEvent.py b/tests/ci/test_browser_event_GetDropdownOptionsEvent.pyindex ae09a6e83..49aa347bc 100644--- a/tests/ci/test_browser_event_GetDropdownOptionsEvent.py+++ b/tests/ci/test_browser_event_GetDropdownOptionsEvent.py@@ -13,8 +13,8 @@ from browser_use.agent.views import ActionModel, ActionResultfrom browser_use.browser import BrowserSessionfrom browser_use.browser.events import GetDropdownOptionsEvent, NavigationCompleteEvent, SelectDropdownOptionEventfrom browser_use.browser.profile import BrowserProfile-from browser_use.controller.service import Tools-from browser_use.controller.views import GoToUrlAction+from browser_use.tools.service import Tools+from browser_use.tools.views import GoToUrlAction@pytest.fixture(scope='session')diff --git a/tests/ci/test_browser_event_GetDropdownOptionsEvent_aria_menus.py b/tests/ci/test_browser_event_GetDropdownOptionsEvent_aria_menus.pyindex 24a155181..c2334731a 100644--- a/tests/ci/test_browser_event_GetDropdownOptionsEvent_aria_menus.py+++ b/tests/ci/test_browser_event_GetDropdownOptionsEvent_aria_menus.py@@ -4,8 +4,8 @@ from pytest_httpserver import HTTPServerfrom browser_use.agent.views import ActionModel, ActionResultfrom browser_use.browser import BrowserSessionfrom browser_use.browser.profile import BrowserProfile-from browser_use.controller.service import Tools-from browser_use.controller.views import GoToUrlAction+from browser_use.tools.service import Tools+from browser_use.tools.views import GoToUrlAction@pytest.fixture(scope='session')diff --git a/tests/ci/test_browser_event_NavigateToUrlEvent.py b/tests/ci/test_browser_event_NavigateToUrlEvent.pyindex 492ac33d5..b4f410d67 100644--- a/tests/ci/test_browser_event_NavigateToUrlEvent.py+++ b/tests/ci/test_browser_event_NavigateToUrlEvent.py@@ -6,8 +6,8 @@ from pytest_httpserver import HTTPServerfrom browser_use.agent.views import ActionModel, ActionResultfrom browser_use.browser import BrowserSessionfrom browser_use.browser.profile import BrowserProfile-from browser_use.controller.service import Tools-from browser_use.controller.views import GoToUrlAction+from browser_use.tools.service import Tools+from browser_use.tools.views import GoToUrlAction@pytest.fixture(scope='session')diff --git a/tests/ci/test_browser_event_ScrollEvent.py b/tests/ci/test_browser_event_ScrollEvent.pyindex 09fc3a955..292b2594a 100644--- a/tests/ci/test_browser_event_ScrollEvent.py+++ b/tests/ci/test_browser_event_ScrollEvent.py@@ -6,8 +6,8 @@ from pytest_httpserver import HTTPServerfrom browser_use.agent.views import ActionModel, ActionResultfrom browser_use.browser import BrowserSessionfrom browser_use.browser.profile import BrowserProfile-from browser_use.controller.service import Tools-from browser_use.controller.views import (+from browser_use.tools.service import Tools+from browser_use.tools.views import (GoToUrlAction,ScrollAction,)diff --git a/tests/ci/test_browser_event_TypeTextEvent.py b/tests/ci/test_browser_event_TypeTextEvent.pyindex 0dc27c84f..df822f9bd 100644--- a/tests/ci/test_browser_event_TypeTextEvent.py+++ b/tests/ci/test_browser_event_TypeTextEvent.py@@ -6,8 +6,8 @@ from pytest_httpserver import HTTPServerfrom browser_use.agent.views import ActionModel, ActionResultfrom browser_use.browser import BrowserSessionfrom browser_use.browser.profile import BrowserProfile-from browser_use.controller.service import Tools-from browser_use.controller.views import (+from browser_use.tools.service import Tools+from browser_use.tools.views import (GoToUrlAction,InputTextAction,)diff --git a/tests/ci/test_browser_event_TypeTextEvent2.py b/tests/ci/test_browser_event_TypeTextEvent2.pyindex 0dc27c84f..df822f9bd 100644--- a/tests/ci/test_browser_event_TypeTextEvent2.py+++ b/tests/ci/test_browser_event_TypeTextEvent2.py@@ -6,8 +6,8 @@ from pytest_httpserver import HTTPServerfrom browser_use.agent.views import ActionModel, ActionResultfrom browser_use.browser import BrowserSessionfrom browser_use.browser.profile import BrowserProfile-from browser_use.controller.service import Tools-from browser_use.controller.views import (+from browser_use.tools.service import Tools+from browser_use.tools.views import (GoToUrlAction,InputTextAction,)diff --git a/tests/ci/test_browser_session_element_cache.py b/tests/ci/test_browser_session_element_cache.pyindex 80c647579..0557ecb9d 100644--- a/tests/ci/test_browser_session_element_cache.py+++ b/tests/ci/test_browser_session_element_cache.py@@ -9,7 +9,7 @@ pytest.skip('TODO: fix - uses removed get_current_page method', allow_module_levfrom browser_use.browser import BrowserSessionfrom browser_use.browser.profile import BrowserProfile-from browser_use.controller.service import Tools+from browser_use.tools.service import Tools@pytest.fixture@@ -334,7 +334,7 @@ async def test_assumption_9_pydantic_private_attrs(browser_session, controller,print(f'2. Original browser_session ID: {id(browser_session)}')# Import the SpecialActionParameters to test directly- from browser_use.controller.registry.views import SpecialActionParameters+ from browser_use.tools.registry.views import SpecialActionParameters# Test what happens when we put browser_session through model_validatespecial_params_data = {diff --git a/tests/ci/test_browser_session_tab_management.py b/tests/ci/test_browser_session_tab_management.pyindex cd9181f54..a03385b4e 100644--- a/tests/ci/test_browser_session_tab_management.py+++ b/tests/ci/test_browser_session_tab_management.py@@ -13,7 +13,7 @@ load_dotenv()from browser_use.agent.views import ActionModelfrom browser_use.browser.profile import BrowserProfilefrom browser_use.browser.session import BrowserSession-from browser_use.controller.service import Tools+from browser_use.tools.service import Tools# Set up test logginglogger = logging.getLogger('tab_tests')diff --git a/tests/ci/test_browser_watchdog_downloads_upload_full_circle.py b/tests/ci/test_browser_watchdog_downloads_upload_full_circle.pyindex 398e52c7e..94af342e5 100644--- a/tests/ci/test_browser_watchdog_downloads_upload_full_circle.py+++ b/tests/ci/test_browser_watchdog_downloads_upload_full_circle.py@@ -12,9 +12,9 @@ from browser_use.agent.views import ActionModelfrom browser_use.browser import BrowserSessionfrom browser_use.browser.events import BrowserStateRequestEvent, FileDownloadedEventfrom browser_use.browser.profile import BrowserProfile-from browser_use.controller.service import Tools-from browser_use.controller.views import ClickElementAction, GoToUrlAction, UploadFileActionfrom browser_use.filesystem.file_system import FileSystem+from browser_use.tools.service import Tools+from browser_use.tools.views import ClickElementAction, GoToUrlAction, UploadFileAction@pytest.fixture(scope='function')diff --git a/tests/ci/test_controller.py b/tests/ci/test_controller.pyindex e936dc73b..51e571fbb 100644--- a/tests/ci/test_controller.py+++ b/tests/ci/test_controller.py@@ -9,15 +9,15 @@ from pytest_httpserver import HTTPServerfrom browser_use.agent.views import ActionModel, ActionResultfrom browser_use.browser import BrowserSessionfrom browser_use.browser.profile import BrowserProfile-from browser_use.controller.service import Tools-from browser_use.controller.views import (+from browser_use.filesystem.file_system import FileSystem+from browser_use.tools.service import Tools+from browser_use.tools.views import (DoneAction,GoToUrlAction,NoParamsAction,SearchGoogleAction,SendKeysAction,)-from browser_use.filesystem.file_system import FileSystem@pytest.fixture(scope='session')diff --git a/tests/ci/test_llm_custom_structured_ouput.py b/tests/ci/test_llm_custom_structured_ouput.pyindex 176dba3d5..3e21e916a 100644--- a/tests/ci/test_llm_custom_structured_ouput.py+++ b/tests/ci/test_llm_custom_structured_ouput.py@@ -4,8 +4,8 @@ import osimport tiktokenfrom browser_use.agent.views import AgentOutput-from browser_use.controller.service import Toolsfrom browser_use.llm.schema import SchemaOptimizer+from browser_use.tools.service import Toolsdef test_optimized_schema():diff --git a/tests/ci/test_llm_schema_optimizer.py b/tests/ci/test_llm_schema_optimizer.pyindex 96e8d899c..14e1d5d52 100644--- a/tests/ci/test_llm_schema_optimizer.py+++ b/tests/ci/test_llm_schema_optimizer.py@@ -6,8 +6,8 @@ optimizes the schemas for agent actions without losing information.from pydantic import BaseModelfrom browser_use.agent.views import AgentOutput-from browser_use.controller.service import Toolsfrom browser_use.llm.schema import SchemaOptimizer+from browser_use.tools.service import Toolsclass ProductInfo(BaseModel):diff --git a/tests/ci/test_registry.py b/tests/ci/test_registry.pyindex 44ba7164c..81ff98376 100644--- a/tests/ci/test_registry.py+++ b/tests/ci/test_registry.py@@ -21,15 +21,15 @@ from pytest_httpserver.httpserver import HandlerTypefrom browser_use.agent.views import ActionResultfrom browser_use.browser import BrowserSessionfrom browser_use.browser.profile import BrowserProfile-from browser_use.controller.registry.service import Registry-from browser_use.controller.registry.views import ActionModel as BaseActionModel-from browser_use.controller.views import (+from browser_use.llm.messages import UserMessage+from browser_use.tools.registry.service import Registry+from browser_use.tools.registry.views import ActionModel as BaseActionModel+from browser_use.tools.views import (ClickElementAction,InputTextAction,NoParamsAction,SearchGoogleAction,)-from browser_use.llm.messages import UserMessagefrom tests.ci.conftest import create_mock_llm# Configure logging@@ -985,8 +985,8 @@ class TestParamsModelArgsAndKwargs:This test confirms that this approach works."""- from browser_use.controller.registry.service import Registry- from browser_use.controller.registry.views import ActionModel+ from browser_use.tools.registry.service import Registry+ from browser_use.tools.registry.views import ActionModel# Simple context for testingclass TestContext:diff --git a/tests/ci/test_registry_action_parameter_injection.py b/tests/ci/test_registry_action_parameter_injection.pyindex c1affd392..5cb399077 100644--- a/tests/ci/test_registry_action_parameter_injection.py+++ b/tests/ci/test_registry_action_parameter_injection.py@@ -340,7 +340,7 @@ class TestBrowserContext:async def test_custom_action_with_no_arguments(self, browser_session, base_url):"""Test that custom actions with no arguments are handled correctly"""from browser_use.agent.views import ActionResult- from browser_use.controller.registry.service import Registry+ from browser_use.tools.registry.service import Registry# Create a registryregistry = Registry()diff --git a/tests/ci/test_registry_action_search_google.py b/tests/ci/test_registry_action_search_google.pyindex 9fc2a002b..203d2aa76 100644--- a/tests/ci/test_registry_action_search_google.py+++ b/tests/ci/test_registry_action_search_google.py@@ -6,7 +6,7 @@ import pytestfrom browser_use.browser import BrowserSessionfrom browser_use.browser.events import BrowserStateRequestEvent, NavigateToUrlEvent-from browser_use.controller.service import Tools+from browser_use.tools.service import Tools@pytest.fixturediff --git a/tests/old/test_action_filters.py b/tests/old/test_action_filters.pyindex 486778ac5..8e5d2f9ab 100644--- a/tests/old/test_action_filters.py+++ b/tests/old/test_action_filters.py@@ -4,8 +4,8 @@ import pytestfrom pydantic import BaseModelfrom browser_use.browser.types import Page-from browser_use.controller.registry.service import Registry-from browser_use.controller.registry.views import ActionRegistry, RegisteredAction+from browser_use.tools.registry.service import Registry+from browser_use.tools.registry.views import ActionRegistry, RegisteredActionclass EmptyParamModel(BaseModel):diff --git a/tests/old/test_google_sheets_real.py b/tests/old/test_google_sheets_real.pyindex 077c282e1..f164b531c 100644--- a/tests/old/test_google_sheets_real.py+++ b/tests/old/test_google_sheets_real.py@@ -10,7 +10,7 @@ import osimport pytestfrom browser_use.browser import BrowserProfile, BrowserSession-from browser_use.controller.service import Controller+from browser_use.tools.service import Controller# Test Google Sheets URL (public read-only spreadsheet for testing)TEST_GOOGLE_SHEET_URL = 'https://docs.google.com/spreadsheets/d/1INaIcfpYXlMRWO__de61SHFCaqt1lfHlcvtXZPItlpI/edit'diff --git a/tests/old/test_self_registered_actions.py b/tests/old/test_self_registered_actions.pyindex c24cfd45a..4065e9123 100644--- a/tests/old/test_self_registered_actions.py+++ b/tests/old/test_self_registered_actions.py@@ -4,8 +4,8 @@ from pydantic import BaseModelfrom browser_use.agent.service import Agentfrom browser_use.agent.views import AgentHistoryListfrom browser_use.browser import BrowserProfile, BrowserSession-from browser_use.controller.service import Controllerfrom browser_use.llm import ChatAzureOpenAI+from browser_use.tools.service import Controller@pytest.fixturediff --git a/tests/scripts/debug_iframe_scrolling.py b/tests/scripts/debug_iframe_scrolling.pyindex 404bddc4e..7772f44fe 100644--- a/tests/scripts/debug_iframe_scrolling.py+++ b/tests/scripts/debug_iframe_scrolling.py@@ -173,7 +173,7 @@ async def debug_iframe_scrolling():print('=' * 80)# Navigate to the page first- from browser_use.controller.service import Controller+ from browser_use.tools.service import Controllercontroller = Controller()