MCPcopy
hub / github.com/docker/docker-agent / ResultSuccess

Function ResultSuccess

pkg/tools/tools.go:155–160  ·  view source on GitHub ↗
(output string)

Source from the content-addressed store, hash-verified

153}
154
155func ResultSuccess(output string) *ToolCallResult {
156 return &ToolCallResult{
157 Output: output,
158 IsError: false,
159 }
160}
161
162// ResultJSON marshals v as JSON and returns it as a successful tool result.
163// If marshaling fails, it returns an error result.

Callers 15

ToolsMethod · 0.92
createHandlerMethod · 0.92
CallToolMethod · 0.92
workspaceMethod · 0.92
hoverMethod · 0.92
locationRequestMethod · 0.92
referencesMethod · 0.92

Calls

no outgoing calls