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
6 tokens less
Magnus Müller3eb6a5cb4243
diff --git a/browser_use/agent/prompts.py b/browser_use/agent/prompts.pyindex c4c2e5b53..5fe5c1b98 100644--- a/browser_use/agent/prompts.py+++ b/browser_use/agent/prompts.py@@ -187,7 +187,7 @@ class AgentMessagePrompt:if page_stats['images'] > 0:stats_text += f', {page_stats["images"]} images'stats_text += f', {page_stats["total_elements"]} total elements'- stats_text += '</page_stats>\n\n'+ stats_text += '</page_stats>\n'elements_text = self.browser_state.dom_state.llm_representation(include_attributes=self.include_attributes)@@ -268,7 +268,7 @@ class AgentMessagePrompt:Available tabs:{tabs_text}{page_info_text}-{recent_events_text}{pdf_message}Elements you can interact with inside the viewport{truncated_text}:+{recent_events_text}{pdf_message}Interactive elements{truncated_text}:{elements_text}"""return browser_state