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
Improved prompt
magmueller47603e6fb98f
diff --git a/promps.txt b/promps.txtdeleted file mode 100644index 7a86b7f3c..000000000--- a/promps.txt+++ /dev/null@@ -1,12 +0,0 @@-You are given a website image and corresponding cleaned up HTML.-Your task is to very accurately describe what you see on the website and give me back the functionality and the options of the functionality.--For example, if you see a search bar and there are filter, I want you to give me back "search function" and parameters "param1, "param2", ...-Also, with each param give me the button/element id/c="" that user should press to activate the functionality (for inputs, dropdowns, etc).-(I engineered cost saving method c=""). Reference each button with css selector by c=--Extract as much functionality as possible to a single function, and group functions together, so that it still makes sense. Make 100% certain that each param has functionality connected to it (instruction on what to press).--Return this format-reasoning: ""-function1:\ No newline at end of filediff --git a/src/agent/views.py b/src/agent/views.pyindex c9120ee32..6b360a87a 100644--- a/src/agent/views.py+++ b/src/agent/views.py@@ -22,8 +22,7 @@ class AgentOnlyAction(BaseModel):def description() -> str:return """- Ask human for help- Example: {"ask_human": {"question": "To clarify ..."}}-"""+ Example: {"ask_human": {"question": "To clarify ..."}}"""class AgentOutput(ControllerActions, AgentOnlyAction):diff --git a/src/controller/views.py b/src/controller/views.pyindex 65c8f8104..2d5ceb9c5 100644--- a/src/controller/views.py+++ b/src/controller/views.py@@ -56,9 +56,9 @@ class ControllerActions(BaseModel):Example: {"go_back": true}- Mark entire task as completeExample: {"done": {"text": "This is the requested result of the task..."}}-- Click an element by its ID+- Click an interactive element by its given IDExample: {"click_element": {"id": 1}}-- Input text into an element by its ID+- Input text into an interactiveelement by its IDExample: {"input_text": {"id": 1, "text": "Hello world"}}- Get the page content in markdownExample: {"extract_page_content": true}