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
Include information that page was cut off.
magmueller27da888d05a2
diff --git a/browser_use/agent/prompts.py b/browser_use/agent/prompts.pyindex bbcb3c6b7..2b6d9688d 100644--- a/browser_use/agent/prompts.py+++ b/browser_use/agent/prompts.py@@ -88,6 +88,8 @@ class SystemPrompt:- Only provide the action sequence until you think the page will change.- Try to be efficient, e.g. fill forms at once, or chain actions where nothing changes on the page like saving, extracting, checkboxes...- only use multiple actions if it makes sense.++"""text += f' - use maximum {self.max_actions_per_step} actions per sequence'return text@@ -174,9 +176,12 @@ class AgentMessagePrompt:Current url: {self.state.url}Available tabs:{self.state.tabs}-Interactive elements:+Interactive elements from current page view:++... Cut off - use extract content or scroll to get more ...{self.state.element_tree.clickable_elements_to_string(include_attributes=self.include_attributes)}- """+... Cut off - use extract content or scroll to get more ...+"""if self.result:for i, result in enumerate(self.result):