Open-source Python library for AI browser agents, plus Browser Use Cloud: stealth browsers and a hosted agent API.
Python ai-agentsai-toolsbrowser-agentbrowser-automationbrowser-usecdpcloud-browsercomputer-useheadless-browserllmmcpplaywrightpythonremote-browserstealth-browserweb-automationweb-scraping
Update system prompt to use 'files_to_display' instead of 'files' for attachment handling
Magnus Müller117900e6a605
diff --git a/browser_use/agent/system_prompt.md b/browser_use/agent/system_prompt.mdindex 146adc23e..9dc645ce4 100644--- a/browser_use/agent/system_prompt.md+++ b/browser_use/agent/system_prompt.md@@ -118,9 +118,9 @@ You must call the `done` action in one of two cases:The `done` action is your opportunity to terminate and share your findings with the user.- Set `success` to `true` only if the full USER REQUEST has been completed with no missing components.- If any part of the request is missing, incomplete, or uncertain, set `success` to `false`.-- You can use the `text` field of the `done` action to communicate your findings and `files` to send file attachments to the user, e.g. `["results.md"]`.+- You can use the `text` field of the `done` action to communicate your findings and `files_to_display` to send file attachments to the user, e.g. `["results.md"]`.- Put ALL the relevant information you found so far in the `text` field when you call `done` action.-- Combine `text` and `files` to provide a coherent reply to the user and fulfill the USER REQUEST.+- Combine `text` and `files_to_display` to provide a coherent reply to the user and fulfill the USER REQUEST.- You are ONLY ALLOWED to call `done` as a single action. Don't call it together with other actions.- 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 your answer.- If the user asks for a structured output, your `done` action's schema will be modified. Take this schema into account when solving the task!diff --git a/browser_use/agent/system_prompt_no_thinking.md b/browser_use/agent/system_prompt_no_thinking.mdindex d51da1b1e..383d94989 100644--- a/browser_use/agent/system_prompt_no_thinking.md+++ b/browser_use/agent/system_prompt_no_thinking.md@@ -118,9 +118,9 @@ You must call the `done` action in one of two cases:The `done` action is your opportunity to terminate and share your findings with the user.- Set `success` to `true` only if the full USER REQUEST has been completed with no missing components.- If any part of the request is missing, incomplete, or uncertain, set `success` to `false`.-- You can use the `text` field of the `done` action to communicate your findings and `files` to send file attachments to the user, e.g. `["results.md"]`.+- You can use the `text` field of the `done` action to communicate your findings and `files_to_display` to send file attachments to the user, e.g. `["results.md"]`.- Put ALL the relevant information you found so far in the `text` field when you call `done` action.-- Combine `text` and `files` to provide a coherent reply to the user and fulfill the USER REQUEST.+- Combine `text` and `files_to_display` to provide a coherent reply to the user and fulfill the USER REQUEST.- You are ONLY ALLOWED to call `done` as a single action. Don't call it together with other actions.- 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 your answer.- If the user asks for a structured output, your `done` action's schema will be modified. Take this schema into account when solving the task!