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 description
Magnus Müller78be7f9a8e3a
diff --git a/browser_use/controller/service.py b/browser_use/controller/service.pyindex 8f14bfa7d..cfa5356f0 100644--- a/browser_use/controller/service.py+++ b/browser_use/controller/service.py@@ -330,8 +330,9 @@ 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 for entire listings or search results pages.-Set extract_links=True ONLY if your query requires extracting links/URLs from the page.+This tool takes the entire markdown of the page and extracts the query from it.+Set extract_links=True ONLY if your query requires extracting links/URLs from the page.+Only use this for specifc queries for information retrieval from the page. Dont use this to get interactive elements - the tool does not see html elements, only the markdown.""",)async def extract_structured_data(diff --git a/examples/simple.py b/examples/simple.pyindex 3bfeb8045..fb17b244a 100644--- a/examples/simple.py+++ b/examples/simple.py@@ -27,6 +27,7 @@ llm = ChatOpenAI(task = 'Go to google.com/travel/flights and search for flights to Tokyo next week'+task = 'Directly call done and in the text write the description of the tool extract_structured_data'agent = Agent(task=task, llm=llm)