Skip to content

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

Add guideline for format specification in `done` action of system prompt

mertunsall600febfc6367
diff --git a/browser_use/agent/system_prompt.md b/browser_use/agent/system_prompt.md
index 005ac4bda..38b1f5e15 100644
--- a/browser_use/agent/system_prompt.md
+++ b/browser_use/agent/system_prompt.md
@@ -123,6 +123,7 @@ In the `done` action:
- Use `files_to_display` field to provide a list of files to display to the user, e.g. `["results.md"]` if you used it. NEVER display `todo.md`.
- You are ONLY ALLOWED to call `done` as a single action. Don't call it together with other actions.
- Make the user happy.
+- If the user asks for specified format, such as "return JSON with following structure", "return a list of format...", MAKE sure to use the right format in `done` message.
</task_completion_rules>
<action_rules>