Skip to content

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

fix comment

mertunsall018de804f76f
diff --git a/browser_use/agent/service.py b/browser_use/agent/service.py
index d921654b8..467e72804 100644
--- a/browser_use/agent/service.py
+++ b/browser_use/agent/service.py
@@ -272,7 +272,7 @@ class Agent(Generic[Context, AgentStructuredOutput]):
elif controller is not None:
self.tools = controller
else:
- # Exclude screenshot tool when use_vision=True
+ # Exclude screenshot tool when use_vision is not auto
exclude_actions = ['screenshot'] if use_vision != 'auto' else []
self.tools = Tools(exclude_actions=exclude_actions, display_files_in_done_text=display_files_in_done_text)