feat: clarify send tool is local-only

This commit is contained in:
zhayujie
2026-03-10 12:10:10 +08:00
parent 45ea88e070
commit 9d8df10dcf
2 changed files with 4 additions and 4 deletions

View File

@@ -175,7 +175,7 @@ def _build_tooling_section(tools: List[Any], language: str) -> List[str]:
"memory_get": "读取记忆内容",
"env_config": "管理API密钥和技能配置",
"scheduler": "管理定时任务和提醒",
"send": "发送文件给用户",
"send": "发送本地文件给用户仅限本地文件URL直接放在回复文本中",
}
# Preferred display order
@@ -214,7 +214,7 @@ def _build_tooling_section(tools: List[Any], language: str) -> List[str]:
"- 在多步骤任务、敏感操作或用户要求时简要解释决策过程",
"- 持续推进直到任务完成,完成后向用户报告结果。",
"- 回复中涉及密钥、令牌等敏感信息必须脱敏。",
"- URL链接直接以文本形式发送",
"- URL链接直接放在回复文本中即可系统会自动处理和渲染。无需下载后使用send工具发送",
"",
]

View File

@@ -14,14 +14,14 @@ class Send(BaseTool):
"""Tool for sending files to the user"""
name: str = "send"
description: str = "Send a file (image, video, audio, document) to the user. Use this when the user explicitly asks to send/share a file."
description: str = "Send a LOCAL file (image, video, audio, document) to the user. Only for local file paths. Do NOT use this for URLs — URLs should be included directly in your text reply, the system will handle them automatically."
params: dict = {
"type": "object",
"properties": {
"path": {
"type": "string",
"description": "Path to the file to send. Can be absolute path or relative to workspace."
"description": "Local file path to send. Must be an absolute path or relative to workspace. Do NOT pass URLs here."
},
"message": {
"type": "string",