fix: write too long file

This commit is contained in:
zhayujie
2026-02-01 17:29:48 +08:00
parent 85578a06b7
commit 99c273a293
3 changed files with 44 additions and 17 deletions

View File

@@ -14,7 +14,7 @@ class Write(BaseTool):
"""Tool for writing file content"""
name: str = "write"
description: str = "Write content to a file. Creates the file if it doesn't exist, overwrites if it does. Automatically creates parent directories."
description: str = "Write content to a file. Creates the file if it doesn't exist, overwrites if it does. Automatically creates parent directories. IMPORTANT: Single write should not exceed 10KB. For large files, create a skeleton first, then use edit to add content in chunks."
params: dict = {
"type": "object",