Skip to content

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

add urls_visited to posthog info

Alezander9d754ba9f47c4
diff --git a/browser_use/agent/service.py b/browser_use/agent/service.py
index d31bb13e0..8f4496bc1 100644
--- a/browser_use/agent/service.py
+++ b/browser_use/agent/service.py
@@ -780,6 +780,7 @@ class Agent(Generic[Context]):
version=self.version,
action_errors=self.state.history.errors(),
action_history=action_history_data,
+ urls_visited=self.state.history.urls(),
steps=self.state.n_steps,
total_input_tokens=self.state.history.total_input_tokens(),
total_duration_seconds=self.state.history.total_duration_seconds(),