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 tools
Magnus Müller78b53a34b7f7
diff --git a/browser_use/tools/service.py b/browser_use/tools/service.pyindex 07fee4f06..ee50764fb 100644--- a/browser_use/tools/service.py+++ b/browser_use/tools/service.py@@ -819,7 +819,9 @@ You will be given a query and the markdown of a webpage that has been filtered tlong_term_memory=f"Tried scrolling to text '{text}' but it was not found",)- @self.registry.action('')+ @self.registry.action(+ 'Request screenshot of current viewport. Use when: visual inspection needed, layout unclear, element positions uncertain, debugging UI issues, or verifying page state. Screenshot included in next observation.',+ )async def screenshot():"""Request that a screenshot be included in the next observation"""memory = 'Requested screenshot for next observation'diff --git a/browser_use/tools/views.py b/browser_use/tools/views.pyindex 1d4744da8..5b41484dd 100644--- a/browser_use/tools/views.py+++ b/browser_use/tools/views.py@@ -63,9 +63,9 @@ class CloseTabAction(BaseModel):class ScrollAction(BaseModel):- down: bool = Field(description='1=down, 0=up')- pages: float = Field(default=1.0, description='0.5=half, 1=pg, 10=bottom')- index: int | None = Field(default=None, description='Use to scroll in specific container with that element')+ down: bool = Field(description='down=True=scroll down, down=False scroll up')+ pages: float = Field(default=1.0, description='0.5=half page, 1=full page, 10=to bottom/top')+ index: int | None = Field(default=None, description='Optional element index to scroll within specific container')class SendKeysAction(BaseModel):