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 extract_structured_data action to default include_links to True for improved usability
mertunsall38b0b4771cec
diff --git a/browser_use/controller/service.py b/browser_use/controller/service.pyindex ac03be396..4aeffc3c3 100644--- a/browser_use/controller/service.py+++ b/browser_use/controller/service.py@@ -310,21 +310,20 @@ class Controller(Generic[Context]):# Content Actions@self.registry.action("""Extract structured, semantic data (e.g. product description, price, all information about XYZ) from the current webpage based on a textual query.-Only use this for extracting info from a single product/article page, not listing or search results pages.-Use include_links=True if extraction requires links.+Only use this for extracting info from a single product/article page, not for entire listings or search results pages.""",)async def extract_structured_data(query: str,page: Page,page_extraction_llm: BaseChatModel,- include_links: bool = False,):from functools import partialimport markdownifystrip = []+ include_links: bool = True # default to True to simplify the tool callif not include_links:strip = ['a', 'img']