Skip to content

Open-source Python library for AI browser agents, plus Browser Use Cloud: stealth browsers and a hosted agent API.

Update step information description in prompts.py for improved clarity

Magnus Müllerb60f59c616e9
diff --git a/browser_use/agent/prompts.py b/browser_use/agent/prompts.py
index 733f3e9c2..cb5ef98fa 100644
--- a/browser_use/agent/prompts.py
+++ b/browser_use/agent/prompts.py
@@ -124,7 +124,7 @@ Interactive elements from top layer of the current page inside the viewport{trun
def _get_agent_state_description(self) -> str:
if self.step_info:
- step_info_description = f'Current step: {self.step_info.step_number + 1}/{self.step_info.max_steps}\n'
+ step_info_description = f'Step {self.step_info.step_number + 1} of {self.step_info.max_steps} max possible steps\n'
else:
step_info_description = ''
time_str = datetime.now().strftime('%Y-%m-%d %H:%M')