MCPcopy Create free account
hub / github.com/compozy/agh / parseToolIDArg

Function parseToolIDArg

internal/cli/tool_operator.go:364–370  ·  view source on GitHub ↗
(raw string)

Source from the content-addressed store, hash-verified

362}
363
364func parseToolIDArg(raw string) (toolspkg.ToolID, error) {
365 id := toolspkg.ToolID(strings.TrimSpace(raw))
366 if err := id.Validate(); err != nil {
367 return "", toolValidationCommandError("", "tool id is invalid", err)
368 }
369 return id, nil
370}
371
372func parseToolsetIDArg(raw string) (toolspkg.ToolsetID, error) {
373 id := toolspkg.ToolsetID(strings.TrimSpace(raw))

Callers 3

newToolInfoCommandFunction · 0.85
newToolApproveCommandFunction · 0.85
newToolInvokeCommandFunction · 0.85

Calls 2

ValidateMethod · 0.65

Tested by

no test coverage detected