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
Remove scroll cta
Magnus Müllerf32fbc981da7
diff --git a/browser_use/agent/prompts.py b/browser_use/agent/prompts.pyindex 8980aed83..0cf3f60f5 100644--- a/browser_use/agent/prompts.py+++ b/browser_use/agent/prompts.py@@ -221,14 +221,14 @@ class AgentMessagePrompt:if self.browser_state.page_info:pi = self.browser_state.page_infopages_above = pi.pixels_above / pi.viewport_height if pi.viewport_height > 0 else 0- elements_text = f'... {pages_above:.1f} pages above - scroll to see more or extract structured data if you are looking for specific information ...\n{elements_text}'+ elements_text = f'... {pages_above:.1f} pages above ...\n{elements_text}'else:elements_text = f'[Start of page]\n{elements_text}'if has_content_below:if self.browser_state.page_info:pi = self.browser_state.page_infopages_below = pi.pixels_below / pi.viewport_height if pi.viewport_height > 0 else 0- elements_text = f'{elements_text}\n... {pages_below:.1f} pages below - scroll to see more or extract structured data if you are looking for specific information ...'+ elements_text = f'{elements_text}\n... {pages_below:.1f} pages below ...'else:elements_text = f'{elements_text}\n[End of page]'else:@@ -257,7 +257,7 @@ class AgentMessagePrompt:pdf_message = ('PDF viewer cannot be rendered. In this page, DO NOT use the extract action as PDF content cannot be rendered. ')- pdf_message += 'Use the read_file action on the downloaded PDF in available_file_paths to read the full text content or scroll in the page to see images/figures if needed.\n\n'+ pdf_message += 'Use the read_file action on the downloaded PDF in available_file_paths to read the full text content.\n\n'# Add recent events if available and requestedrecent_events_text = ''