MCPcopy
hub / github.com/wavetermdev/waveterm / GetToolDefinition

Method GetToolDefinition

pkg/aiusechat/uctypes/uctypes.go:521–533  ·  view source on GitHub ↗
(toolName string)

Source from the content-addressed store, hash-verified

519}
520
521func (opts *WaveChatOpts) GetToolDefinition(toolName string) *ToolDefinition {
522 for _, tool := range opts.Tools {
523 if tool.Name == toolName {
524 return &tool
525 }
526 }
527 for _, tool := range opts.TabTools {
528 if tool.Name == toolName {
529 return &tool
530 }
531 }
532 return nil
533}
534
535func (opts *WaveChatOpts) GetWaveRequestType() string {
536 if opts.BuilderId != "" {

Callers 3

processToolCallFunction · 0.80
CreateToolUseDataFunction · 0.80
SendToolProgressFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected