MCPcopy
hub / github.com/sipeed/picoclaw / Tool

Interface Tool

pkg/tools/shared/base.go:10–15  ·  view source on GitHub ↗

Tool is the interface that all tools must implement.

Source from the content-addressed store, hash-verified

8
9// Tool is the interface that all tools must implement.
10type Tool interface {
11 Name() string
12 Description() string
13 Parameters() map[string]any
14 Execute(ctx context.Context, args map[string]any) *ToolResult
15}
16
17const (
18 ToolPromptLayerCapability = "capability"

Callers 24

storeInlineDataURLFunction · 0.65
RegisterMethod · 0.65
RegisterHiddenMethod · 0.65
GetSummariesMethod · 0.65
storeBinaryContentMethod · 0.65
ExecuteMethod · 0.65
SearchRegexMethod · 0.65
SnapshotHiddenToolsMethod · 0.65
GetSummariesMethod · 0.65

Implementers 15

mockSearchableToolpkg/tools/search_tools_test.go
SpawnStatusToolpkg/tools/spawn_status.go
SubagentToolpkg/tools/subagent.go
RegexSearchToolpkg/tools/search_tool.go
BM25SearchToolpkg/tools/search_tool.go
SpawnToolpkg/tools/spawn.go
ExecToolpkg/tools/shell.go
CronToolpkg/tools/cron.go
DelegateToolpkg/tools/delegate.go
mockRegistryToolpkg/tools/registry_test.go
mockPanicToolpkg/tools/registry_test.go
mockNilResultToolpkg/tools/registry_test.go

Calls

no outgoing calls

Tested by

no test coverage detected