Skip to content

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

Feedback message if wrong output

Magnus Müller49e7f5686e01
diff --git a/browser_use/agent/service.py b/browser_use/agent/service.py
index fa8dd3dbb..9a25f8dc3 100644
--- a/browser_use/agent/service.py
+++ b/browser_use/agent/service.py
@@ -928,7 +928,7 @@ class Agent(Generic[Context, AgentStructuredOutput]):
self.logger.warning('Model returned empty action. Retrying...')
clarification_message = UserMessage(
- content='You forgot to return an action. Please respond only with a valid JSON action according to the expected format.'
+ content='You forgot to return an action. Please respond with a valid JSON action according to the expected schema with your assessment and next actions.'
)
retry_messages = input_messages + [clarification_message]