MCPcopy Index your code
hub / github.com/docker/docker-agent / PrintToolCall

Method PrintToolCall

pkg/cli/printer.go:86–88  ·  view source on GitHub ↗

PrintToolCall prints a tool call

(toolCall tools.ToolCall)

Source from the content-addressed store, hash-verified

84
85// PrintToolCall prints a tool call
86func (p *Printer) PrintToolCall(toolCall tools.ToolCall) {
87 p.Printf("\nCalling %s%s\n", bold(toolCall.Function.Name), formatToolCallArguments(toolCall.Function.Arguments))
88}
89
90// PrintToolCallWithConfirmation prints a tool call and prompts for confirmation
91func (p *Printer) PrintToolCallWithConfirmation(ctx context.Context, toolCall tools.ToolCall, rd io.Reader) ConfirmationResult {

Callers 2

RunFunction · 0.80

Calls 2

PrintfMethod · 0.95
formatToolCallArgumentsFunction · 0.85

Tested by

no test coverage detected