MCPcopy Create free account
hub / github.com/astercloud/aster / NewWriteTool

Function NewWriteTool

pkg/tools/builtin/write.go:22–24  ·  view source on GitHub ↗

NewWriteTool 创建文件写入工具

(config map[string]any)

Source from the content-addressed store, hash-verified

20
21// NewWriteTool 创建文件写入工具
22func NewWriteTool(config map[string]any) (tools.Tool, error) {
23 return &WriteTool{}, nil
24}
25
26func (t *WriteTool) Name() string {
27 return "Write" // 使用标准的工具名称

Calls

no outgoing calls

Tested by 6

TestNewWriteToolFunction · 0.68
TestWriteTool_AppendModeFunction · 0.68