Skip to content

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

Log full file path when writing to file

Cursor Agent596ada054077
diff --git a/browser_use/tools/service.py b/browser_use/tools/service.py
index 78004db1a..cadcb1889 100644
--- a/browser_use/tools/service.py
+++ b/browser_use/tools/service.py
@@ -960,7 +960,11 @@ You will be given a query and the markdown of a webpage that has been filtered t
result = await file_system.append_file(file_name, content)
else:
result = await file_system.write_file(file_name, content)
- logger.info(f'💾 {result}')
+
+ # Log the full path where the file is stored
+ file_path = file_system.get_dir() / file_name
+ logger.info(f'💾 {result} File location: {file_path}')
+
return ActionResult(extracted_content=result, long_term_memory=result)
@self.registry.action(