Skip to content

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

Merge branch 'main' into fix-compaction-hallucination

Saurav Pandacb75bf846ad1
diff --cc browser_use/tools/views.py
index 2c638ecc8,09567a03c..0aa69fbcd
--- a/browser_use/tools/views.py
+++ b/browser_use/tools/views.py
@@@ -86,10 -86,10 +86,11 @@@ class DoneAction(BaseModel)
text: str = Field(
description=(
'Final message to the user. '
- 'ONLY describe actions you performed and data you extracted in this session. '
+ 'ONLY report data you directly observed in browser_state, tool outputs, or screenshots during this session. '
+ 'Do NOT use training knowledge to fill gaps — if information was not found on the page, say so explicitly. '
'Do NOT claim completion of steps from compacted_memory or prior session summaries '
- 'unless you explicitly verified them yourself.'
+ 'unless you explicitly verified them yourself. '
+ 'If uncertain whether a prior step completed, say so explicitly.'
)
)
success: bool = Field(default=True, description='True if user_request completed successfully')