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
Merge branch 'main' into mert/cua_fallback_example
Mert Unsala06e04cabe4a
diff --cc browser_use/controller/views.pyindex 48c4bec0c,aa4512e32..47848be12--- a/browser_use/controller/views.py+++ b/browser_use/controller/views.py@@@ -71,36 -71,3 +71,10 @@@ class NoParamsAction(BaseModel)model_config = ConfigDict(extra='ignore')# No fields defined - all inputs are ignored automatically++- class Position(BaseModel):- x: int- y: int--- class DragDropAction(BaseModel):- # Element-based approach- element_source: str | None = Field(None, description='CSS selector or XPath of the element to drag from')- element_target: str | None = Field(None, description='CSS selector or XPath of the element to drop onto')- element_source_offset: Position | None = Field(- None, description='Precise position within the source element to start drag (in pixels from top-left corner)'- )- element_target_offset: Position | None = Field(- None, description='Precise position within the target element to drop (in pixels from top-left corner)'- )-- # Coordinate-based approach (used if selectors not provided)- coord_source_x: int | None = Field(None, description='Absolute X coordinate on page to start drag from (in pixels)')- coord_source_y: int | None = Field(None, description='Absolute Y coordinate on page to start drag from (in pixels)')- coord_target_x: int | None = Field(None, description='Absolute X coordinate on page to drop at (in pixels)')- coord_target_y: int | None = Field(None, description='Absolute Y coordinate on page to drop at (in pixels)')-- # Common options- steps: int | None = Field(10, description='Number of intermediate points for smoother movement (5-20 recommended)')- delay_ms: int | None = Field(5, description='Delay in milliseconds between steps (0 for fastest, 10-20 for more natural)')--+class OpenAICUAAction(BaseModel):+ """Parameters for OpenAI Computer Use Assistant action."""++ description: str = Field(..., description='Description of your next goal')++