MCPcopy Create free account
hub / github.com/github/gh-aw / toolDisplayKey

Function toolDisplayKey

pkg/workflow/samples_validation.go:348–350  ·  view source on GitHub ↗

toolDisplayKey converts a snake_case MCP tool name into the hyphenated YAML frontmatter key (e.g. "create_pull_request" -> "create-pull-request").

(toolName string)

Source from the content-addressed store, hash-verified

346// toolDisplayKey converts a snake_case MCP tool name into the hyphenated YAML
347// frontmatter key (e.g. "create_pull_request" -> "create-pull-request").
348func toolDisplayKey(toolName string) string {
349 return strings.ReplaceAll(toolName, "_", "-")
350}

Callers 1

validateSamplesForToolFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected