Skip to content

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

Include function descriptions in prompt

magmueller7450a469fa1c
diff --git a/browser_use/agent/prompts.py b/browser_use/agent/prompts.py
index 55684957d..2adc4fabb 100644
--- a/browser_use/agent/prompts.py
+++ b/browser_use/agent/prompts.py
@@ -131,6 +131,9 @@ Current date and time: {time_str}
{self.important_rules()}
+Functions:
+{self.default_action_description}
+
Remember: Your responses must be valid JSON matching the specified format. Each action in the sequence must be valid."""
return SystemMessage(content=AGENT_PROMPT)