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 <noreply@anthropic.com>
This commit is contained in:
Nicholas Tindle
2026-01-28 02:09:34 -06:00
parent f7c59b00d8
commit e3a389ba00

View File

@@ -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/<session_id>/... for cross-session access."
)