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
tool description extract_structured_data for clever usage with dynamic content
Magnus Müller008f65ec3e76
diff --git a/browser_use/controller/service.py b/browser_use/controller/service.pyindex 13b497794..b6a1eadf4 100644--- a/browser_use/controller/service.py+++ b/browser_use/controller/service.py@@ -415,8 +415,8 @@ class Controller(Generic[Context]):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 specific queries for information retrieval from the page. Don't use this to get interactive elements - the tool does not see HTML elements, only the markdown.- Note: Extracting from the same page will yield the same results unless more content is loaded (e.g., through scrolling for dynamic content, or new page is loaded) - so one extraction per page state is sufficient.- If you called extract_structured_data in the last step and the result was not good, use the current browser state and scrolling to get the information, dont call extract_structured_data again.+ Note: Extracting from the same page will yield the same results unless more content is loaded (e.g., through scrolling for dynamic content, or new page is loaded) - so one extraction per page state is sufficient. If you want to scrape a listing of many elements always first scroll a lot until the page end to load everything and then call this tool in the end.+ If you called extract_structured_data in the last step and the result was not good (e.g. because of antispam protection), use the current browser state and scrolling to get the information, dont call extract_structured_data again.""",)async def extract_structured_data(