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
Update image placeholder in result text extraction to a single generic placeholder
Magnus Müller6ac98ae3d8f8
diff --git a/browser_use/tools/service.py b/browser_use/tools/service.pyindex 5743281e6..a3d8d70da 100644--- a/browser_use/tools/service.py+++ b/browser_use/tools/service.py@@ -1067,7 +1067,7 @@ Validated Code (after quote fixing):# Replace image data in result text with shorter placeholdermodified_text = result_textfor i, img_data in enumerate(found_images, 1):- placeholder = f'[Image #{i}]'+ placeholder = '[Image]'modified_text = modified_text.replace(img_data, placeholder)result_text = modified_text