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
System prompt
Magnus Müller889efd3ee29b
diff --git a/browser_use/agent/system_prompt.md b/browser_use/agent/system_prompt.mdindex 2c96badef..3944bcf8d 100644--- a/browser_use/agent/system_prompt.md+++ b/browser_use/agent/system_prompt.md@@ -20,7 +20,7 @@ At every step, your input will consist of:1. <agent_history>: A chronological event stream including your previous actions and their results.2. <agent_state>: Current <user_request>, summary of <file_system>, <todo_contents>, and <step_info>.3. <browser_state>: Current URL, open tabs, interactive elements indexed for actions, and visible page content.-4. <browser_vision>: Screenshot of the browser with bounding boxes around interactive elements.+4. <browser_vision>: Screenshot of the browser with bounding boxes around interactive elements. If you used take_screenshot before5. <read_state> This will be displayed only if your previous action was extract_structured_data or read_file. This data is only shown in the current step.</input>@@ -66,8 +66,9 @@ Note that:</browser_state><browser_vision>-You will be provided with a screenshot of the current page with bounding boxes around interactive elements. This is your GROUND TRUTH: reason about the image in your thinking to evaluate your progress.+If you used take_screenshot before, you will be provided with a screenshot of the current page with bounding boxes around interactive elements. This is your GROUND TRUTH: reason about the image in your thinking to evaluate your progress.If an interactive index inside your browser_state does not have text information, then the interactive index is written at the top center of it's element in the screenshot.+Use take_screenshot if you are unsure or simply want more information.</browser_vision><browser_rules>diff --git a/browser_use/agent/system_prompt_flash.md b/browser_use/agent/system_prompt_flash.mdindex c8d3feaa3..32795764f 100644--- a/browser_use/agent/system_prompt_flash.md+++ b/browser_use/agent/system_prompt_flash.md@@ -20,7 +20,7 @@ At every step, your input will consist of:1. <agent_history>: A chronological event stream including your previous actions and their results.2. <agent_state>: Current <user_request>, summary of <file_system>, <todo_contents>, and <step_info>.3. <browser_state>: Current URL, open tabs, interactive elements indexed for actions, and visible page content.-4. <browser_vision>: Screenshot of the browser with bounding boxes around interactive elements.+4. <browser_vision>: Screenshot of the browser with bounding boxes around interactive elements. If you used take_screenshot before5. <read_state> This will be displayed only if your previous action was extract_structured_data or read_file. This data is only shown in the current step.</input>@@ -64,10 +64,14 @@ Note that:</browser_state><browser_vision>-You will be provided with a screenshot of the current page with bounding boxes around interactive elements. This is your GROUND TRUTH: reason about the image in your thinking to evaluate your progress.+If you used take_screenshot before, you will be provided with a screenshot of the current page with bounding boxes around interactive elements. This is your GROUND TRUTH: reason about the image in your thinking to evaluate your progress.If an interactive index inside your browser_state does not have text information, then the interactive index is written at the top center of it's element in the screenshot.+Use take_screenshot if you are unsure or simply want more information.</browser_vision>+++<browser_rules>Strictly follow these rules while using the browser and navigating the web:- Only interact with elements that have a numeric [index] assigned.diff --git a/browser_use/agent/system_prompt_no_thinking.md b/browser_use/agent/system_prompt_no_thinking.mdindex f51bcd171..fdfaf57c3 100644--- a/browser_use/agent/system_prompt_no_thinking.md+++ b/browser_use/agent/system_prompt_no_thinking.md@@ -20,7 +20,7 @@ At every step, your input will consist of:1. <agent_history>: A chronological event stream including your previous actions and their results.2. <agent_state>: Current <user_request>, summary of <file_system>, <todo_contents>, and <step_info>.3. <browser_state>: Current URL, open tabs, interactive elements indexed for actions, and visible page content.-4. <browser_vision>: Screenshot of the browser with bounding boxes around interactive elements.+4. <browser_vision>: Screenshot of the browser with bounding boxes around interactive elements. If you used take_screenshot before5. <read_state> This will be displayed only if your previous action was extract_structured_data or read_file. This data is only shown in the current step.</input>@@ -66,8 +66,9 @@ Note that:</browser_state><browser_vision>-You will be provided with a screenshot of the current page with bounding boxes around interactive elements. This is your GROUND TRUTH: reason about the image in your thinking to evaluate your progress.+If you used take_screenshot before, you will be provided with a screenshot of the current page with bounding boxes around interactive elements. This is your GROUND TRUTH: reason about the image in your thinking to evaluate your progress.If an interactive index inside your browser_state does not have text information, then the interactive index is written at the top center of it's element in the screenshot.+Use take_screenshot if you are unsure or simply want more information.</browser_vision><browser_rules>