Skip to content

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

Include top layer description

Magnus Müller257133298878
diff --git a/browser_use/agent/prompts.py b/browser_use/agent/prompts.py
index b15c46b67..5fe2588e7 100644
--- a/browser_use/agent/prompts.py
+++ b/browser_use/agent/prompts.py
@@ -203,7 +203,7 @@ You will see the following only once - if you need to remember it and you dont k
Current url: {self.state.url}
Available tabs:
{self.state.tabs}
-Interactive elements from current page:
+Interactive elements from top layer of the current page inside the viewport:
{elements_text}
{step_info_description}
"""