Skip to content

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

Default value for extract_links

Magnus Müller47bf97328567
diff --git a/browser_use/tools/service.py b/browser_use/tools/service.py
index 60b85e082..37f16ace6 100644
--- a/browser_use/tools/service.py
+++ b/browser_use/tools/service.py
@@ -559,10 +559,10 @@ class Tools(Generic[Context]):
)
async def extract(
query: str,
- extract_links: bool,
browser_session: BrowserSession,
page_extraction_llm: BaseChatModel,
file_system: FileSystem,
+ extract_links: bool = False,
start_from_char: int = 0,
):
# Constants