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

Function NewReadTool

pkg/tools/builtin/read.go:18–20  ·  view source on GitHub ↗

NewReadTool 创建文件读取工具

(config map[string]any)

Source from the content-addressed store, hash-verified

16
17// NewReadTool 创建文件读取工具
18func NewReadTool(config map[string]any) (tools.Tool, error) {
19 return &ReadTool{}, nil
20}
21
22func (t *ReadTool) Name() string {
23 return "Read" // 使用标准的工具名称

Callers 14

createFilesystemToolsMethod · 0.92
TestNewReadToolFunction · 0.85
TestReadTool_InputSchemaFunction · 0.85
TestReadTool_SuccessFunction · 0.85
TestReadTool_EmptyFileFunction · 0.85
TestReadTool_LargeFileFunction · 0.85
TestReadTool_BinaryFileFunction · 0.85

Calls

no outgoing calls

Tested by 13

TestNewReadToolFunction · 0.68
TestReadTool_InputSchemaFunction · 0.68
TestReadTool_SuccessFunction · 0.68
TestReadTool_EmptyFileFunction · 0.68
TestReadTool_LargeFileFunction · 0.68
TestReadTool_BinaryFileFunction · 0.68