MCPcopy Create free account
hub / github.com/Chat2AnyLLM/code-agent-manager / toolDTO

Function toolDTO

internal/desktop/tool_service.go:130–133  ·  view source on GitHub ↗
(tool tools.Tool)

Source from the content-addressed store, hash-verified

128}
129
130func toolDTO(tool tools.Tool) ToolDTO {
131 installed, version := tools.Detect(tool)
132 return toolDTOWith(tool, installed, version)
133}
134
135// toolDTOWith assembles a ToolDTO from an already-known detection result so
136// the cached and freshly-probed paths produce identical output.

Callers 2

DryRunMethod · 0.85
ApplyConfigMethod · 0.85

Calls 2

DetectFunction · 0.92
toolDTOWithFunction · 0.85

Tested by

no test coverage detected