From e3a389ba00e0812bd51ec8083e2f55cff45a75cf Mon Sep 17 00:00:00 2001 From: Nicholas Tindle Date: Wed, 28 Jan 2026 02:09:34 -0600 Subject: [PATCH] fix(chat): use configurable max_file_size_mb in tool description The description was hardcoded to "100MB" but the actual limit is configurable via Config().max_file_size_mb. Co-Authored-By: Claude Opus 4.5 --- .../backend/backend/api/features/chat/tools/workspace_tools.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autogpt_platform/backend/backend/api/features/chat/tools/workspace_tools.py b/autogpt_platform/backend/backend/api/features/chat/tools/workspace_tools.py index a435ff04a9..63a781b481 100644 --- a/autogpt_platform/backend/backend/api/features/chat/tools/workspace_tools.py +++ b/autogpt_platform/backend/backend/api/features/chat/tools/workspace_tools.py @@ -382,7 +382,7 @@ class WriteWorkspaceFileTool(BaseTool): return ( "Write or create a file in the user's workspace. " "Provide the content as a base64-encoded string. " - "Maximum file size is 100MB. " + f"Maximum file size is {Config().max_file_size_mb}MB. " "Files are saved to the current session's folder by default. " "Use /sessions//... for cross-session access." )