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
Update label
Magnus Müller7e8eb3d5716d
diff --git a/browser_use/agent/prompts.py b/browser_use/agent/prompts.pyindex cf7d2e241..c8033e285 100644--- a/browser_use/agent/prompts.py+++ b/browser_use/agent/prompts.py@@ -239,11 +239,11 @@ Interactive elements from top layer of the current page inside the viewport{trun# Add screenshots with labelsfor i, screenshot in enumerate(unique_screenshots):- steps_ago = len(unique_screenshots) - 1 - i- if steps_ago == 0:+ if i == len(unique_screenshots) - 1:label = 'Current screenshot:'else:- label = 'Past screenshot from previous step:'+ # Use simple, accurate labeling since we don't have actual step timing info+ label = 'Previous screenshot:'# Add label as text contentcontent_parts.append(ContentPartTextParam(text=label))