Skip to content

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

lint

Laith Weinberger086f18cf5307
diff --git a/browser_use/mcp/server.py b/browser_use/mcp/server.py
index f8e0ecf3b..03cd32db5 100644
--- a/browser_use/mcp/server.py
+++ b/browser_use/mcp/server.py
@@ -480,7 +480,9 @@ class BrowserUseServer:
)
)
- async def _execute_tool(self, tool_name: str, arguments: dict[str, Any]) -> str | list[types.TextContent | types.ImageContent]:
+ async def _execute_tool(
+ self, tool_name: str, arguments: dict[str, Any]
+ ) -> str | list[types.TextContent | types.ImageContent]:
"""Execute a browser-use tool. Returns str for most tools, or a content list for tools with image output."""
# Agent-based tools