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 simple example
Magnus Müllere27e1c9d6525
diff --git a/examples/simple.py b/examples/simple.pyindex 6471ca438..0b2621d6c 100644--- a/examples/simple.py+++ b/examples/simple.py@@ -2,10 +2,10 @@ import asynciofrom browser_use import Agent, Controller-controller = Controller()+tools = Controller()[email protected]('Ask human for help with a question')[email protected]('Ask human for help with a question')def ask_human(question: str) -> str:answer = input(f'{question} > ')return f'The human responded with: {answer}'@@ -13,7 +13,7 @@ def ask_human(question: str) -> str:agent = Agent(task='Ask human for help',- controller=controller,+ tools=tools,)