Skip to content

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

Remove url blank from extract_structured_data

Magnus Mülleraf8acb065913
diff --git a/browser_use/controller/service.py b/browser_use/controller/service.py
index 5aadbb191..01fbc7ac7 100644
--- a/browser_use/controller/service.py
+++ b/browser_use/controller/service.py
@@ -434,7 +434,7 @@ Provide the extracted information in a clear, structured format."""
timeout=120.0,
)
- extracted_content = f'Page Link: {cdp_session.url}\nQuery: {query}\nExtracted Content:\n{response.completion}'
+ extracted_content = f'Query: {query}\nExtracted Content:\n{response.completion}'
# Simple memory handling
if len(extracted_content) < 1000: