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
Refine page info reporting by removing viewport size details and current time from step info
Magnus Müllera6211d2df9da
diff --git a/browser_use/agent/prompts.py b/browser_use/agent/prompts.pyindex 33a545fb2..928ed05ba 100644--- a/browser_use/agent/prompts.py+++ b/browser_use/agent/prompts.py@@ -135,7 +135,6 @@ class AgentMessagePrompt:total_pages = pi.page_height / pi.viewport_height if pi.viewport_height > 0 else 0current_page_position = pi.scroll_y / max(pi.page_height - pi.viewport_height, 1)page_info_text = '<page_info>'- page_info_text += f'Viewport size: {pi.viewport_width}x{pi.viewport_height}px, Total page size: {pi.page_width}x{pi.page_height}px, 'page_info_text += f'{pages_above:.1f} pages above, 'page_info_text += f'{pages_below:.1f} pages below, 'page_info_text += f'{total_pages:.1f} total pages'@@ -205,9 +204,6 @@ Available tabs:else:step_info_description = ''- time_str = datetime.now().strftime('%Y-%m-%d %H:%M')- step_info_description += f'Current date and time: {time_str}'-time_str = datetime.now().strftime('%Y-%m-%d')step_info_description += f'Current date: {time_str}'