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
Limit error message length in action results to 400 characters for improved logging clarity
Magnus Müller77ff34ea6456
diff --git a/browser_use/agent/message_manager/service.py b/browser_use/agent/message_manager/service.pyindex 175d71031..3245b1c07 100644--- a/browser_use/agent/message_manager/service.py+++ b/browser_use/agent/message_manager/service.py@@ -378,7 +378,7 @@ My next action is to click on the iPhone link at index [4] to navigate to Apple'if action_result.memory:action_results += f'Action {idx + 1} Result: {action_result.memory}\n'elif action_result.error:- action_results += f'Action {idx + 1} Error: {action_result.error}\n'+ action_results += f'Action {idx + 1} Error: {action_result.error[:400]}\n'elif action_result.extracted_content:action_results += f'Action {idx + 1} Result: {action_result.extracted_content}\n'logger.warning(