Skip to content

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

extract_structured_data descripiton for single use

Magnus Müller2d63ccf65aa5
diff --git a/browser_use/controller/service.py b/browser_use/controller/service.py
index 75e27f91f..0eea6301a 100644
--- a/browser_use/controller/service.py
+++ b/browser_use/controller/service.py
@@ -328,6 +328,7 @@ 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 except you change the query.
""",
)
async def extract_structured_data(