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 argument naming and message content in service.py
Magnus Müller1c7b41eacd94
diff --git a/browser_use/agent/message_manager/service.py b/browser_use/agent/message_manager/service.pyindex f15ee8cb2..c4fc29982 100644--- a/browser_use/agent/message_manager/service.py+++ b/browser_use/agent/message_manager/service.py@@ -245,7 +245,7 @@ class MessageManager:tool_calls=[{'name': 'AgentOutput',- 'args': {+ 'arguments': {'current_state': {'thinking': """**Understanding the Current State and History:**@@ -290,7 +290,9 @@ class MessageManager:'write_file': {'path': 'github.md','content': """-# Github Repositories in Explore Section and Their Information+# Github Repositories:+- bytedance/UI-TARS-desktop+- ray-project/kuberay""",}},@@ -307,7 +309,7 @@ class MessageManager:],)self._add_message_with_tokens(example_tool_call_1, message_type='init')- self.add_tool_message(content='Data written to todo.md successfully. </example_1>', message_type='init')+ self.add_tool_message(content='Data written to todo.md and github.md successfully. </example_1>', message_type='init')placeholder_message = HumanMessage(content='<example_2>Example thinking and tool call 2:')# self._add_message_with_tokens(placeholder_message, message_type='init')