From 82bd19a1cda49c9640dc05c626a4b0fb6558e963 Mon Sep 17 00:00:00 2001 From: Autumn-27 <53844290+Autumn-27@users.noreply.github.com> Date: Fri, 7 Aug 2026 12:21:12 -0400 Subject: [PATCH] =?UTF-8?q?docs(tools):=20create=5Fcustom=5Ftool=20?= =?UTF-8?q?=E6=8F=8F=E8=BF=B0=E5=89=8D=E7=BD=AE=E3=80=90=E9=87=8D=E8=A6=81?= =?UTF-8?q?=E3=80=91=E6=8F=90=E7=A4=BA=EF=BC=8C=E5=BC=95=E5=AF=BC=E5=AE=89?= =?UTF-8?q?=E8=A3=85=E5=B9=B3=E5=8F=B0=E5=A4=96=E5=B7=A5=E5=85=B7=E5=90=8E?= =?UTF-8?q?=E7=99=BB=E8=AE=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Opus 5 (1M context) --- server/platform_tools.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/platform_tools.go b/server/platform_tools.go index d9c50c4..face7d8 100644 --- a/server/platform_tools.go +++ b/server/platform_tools.go @@ -8,8 +8,8 @@ import ( "path/filepath" "strings" - actool "github.com/Autumn-27/norma/tool" "github.com/Autumn-27/artex/db" + actool "github.com/Autumn-27/norma/tool" ) // 平台操作工具(给内置 Auto agent 用):建/改 skill、自定义工具、MCP。都是 host 工具, @@ -152,7 +152,7 @@ func toDBTool(a customToolToolInput) *db.Tool { } func (s *Server) toolCreateCustomTool() actool.CoreTool { - return wrTool("create_custom_tool", "创建一个自定义工具(shell/command/script/http)。shell=bash 环境声明,只需 key+description+agents,无需 exec/schema。", + return wrTool("create_custom_tool", "【重要】当安装一些平台没有的工具时,调用该工具将安装的工具放入平台中,让平台可以调用!创建一个自定义工具(shell/command/script/http)。shell=bash 环境声明,只需 key+description+agents,无需 exec/schema。", customToolSchema("工具 key(小写字母开头,字母/数字/下划线)"), func(_ context.Context, in json.RawMessage) (actool.Result, error) { var a customToolToolInput