Skip to content

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

Clarify definition of <new> tag in browser state documentation

Cursor Agente13c4cee9cde
diff --git a/browser_use/agent/system_prompt.md b/browser_use/agent/system_prompt.md
index 6e1d272d2..23bc83a92 100644
--- a/browser_use/agent/system_prompt.md
+++ b/browser_use/agent/system_prompt.md
@@ -61,7 +61,7 @@ Examples:
Note that:
- Only elements with numeric indexes in [] are interactive
- (stacked) indentation (with \t) is important and means that the element is a (html) child of the element above (with a lower index)
-- Elements with <new> tags are new elements that were added after the previous step (if url has not changed)
+- Elements with <new> tags are elements that appeared on the website since the last step - an element is only tagged as "new" if it was not present in the previous step but is now visible on the page (if url has not changed)
- Pure text elements without [] are not interactive.
</browser_state>
diff --git a/browser_use/agent/system_prompt_no_thinking.md b/browser_use/agent/system_prompt_no_thinking.md
index b27294d19..aede9a858 100644
--- a/browser_use/agent/system_prompt_no_thinking.md
+++ b/browser_use/agent/system_prompt_no_thinking.md
@@ -61,7 +61,7 @@ Examples:
Note that:
- Only elements with numeric indexes in [] are interactive
- (stacked) indentation (with \t) is important and means that the element is a (html) child of the element above (with a lower index)
-- Elements with <new> tags are new elements that were added after the previous step (if url has not changed)
+- Elements with <new> tags are elements that appeared on the website since the last step - an element is only tagged as "new" if it was not present in the previous step but is now visible on the page (if url has not changed)
- Pure text elements without [] are not interactive.
</browser_state>