Skip to content

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

lint

mertunsall688ff43f265a
diff --git a/browser_use/tools/service.py b/browser_use/tools/service.py
index 3f7f2b14e..26c12df88 100644
--- a/browser_use/tools/service.py
+++ b/browser_use/tools/service.py
@@ -1185,7 +1185,12 @@ Validated Code (after quote fixing):
include_extracted_content_only_once = True
# Return only the result, not the code (code is already in user's cell)
- return ActionResult(extracted_content=result_text, long_term_memory=memory, include_extracted_content_only_once=include_extracted_content_only_once, metadata=metadata)
+ return ActionResult(
+ extracted_content=result_text,
+ long_term_memory=memory,
+ include_extracted_content_only_once=include_extracted_content_only_once,
+ metadata=metadata,
+ )
except Exception as e:
# CDP communication or other system errors