From 02a7494df119a98d8610aee220bc099eeb56df06 Mon Sep 17 00:00:00 2001 From: Darnell Andries Date: Wed, 10 Dec 2025 09:58:53 -0800 Subject: [PATCH] Update code execution tool description (#32757) --- browser/ai_chat/code_execution_tool.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/browser/ai_chat/code_execution_tool.cc b/browser/ai_chat/code_execution_tool.cc index 775a2273eea..21dcc6b70f3 100644 --- a/browser/ai_chat/code_execution_tool.cc +++ b/browser/ai_chat/code_execution_tool.cc @@ -128,10 +128,12 @@ std::string_view CodeExecutionTool::Description() const { "string as a result. " "Use only when the task warrants actual code execution or processing. " "Do not use this for content generation. " + "Do not use this for fetching information from the internet. " "Do not use console.log statements or similar statements. Always " "return a string as a result. Always use an explicit return statement " "(i.e. return result). " - "The code will be executed in a sandboxed environment."; + "The code will be executed in a sandboxed environment." + "Network requests are not allowed."; } std::optional CodeExecutionTool::InputProperties() const {