MCPcopy Create free account
hub / github.com/anomalyco/opencode / label

Function label

packages/session-ui/src/components/basic-tool.tsx:300–303  ·  view source on GitHub ↗
(input: Record<string, unknown> | undefined)

Source from the content-addressed store, hash-verified

298}
299
300function label(input: Record<string, unknown> | undefined) {
301 const keys = ["description", "query", "url", "filePath", "path", "pattern", "name"]
302 return keys.map((key) => input?.[key]).find((value): value is string => typeof value === "string" && value.length > 0)
303}
304
305function args(input: Record<string, unknown> | undefined) {
306 if (!input) return []

Callers 1

GenericToolFunction · 0.70

Calls 1

findMethod · 0.65

Tested by

no test coverage detected