MCPcopy Index your code
hub / github.com/simstudioai/sim / stringArrayArg

Function stringArrayArg

apps/sim/lib/copilot/tools/tool-display.ts:32–36  ·  view source on GitHub ↗
(args: ToolArgs, key: string)

Source from the content-addressed store, hash-verified

30}
31
32function stringArrayArg(args: ToolArgs, key: string): string[] {
33 const value = args?.[key]
34 if (!Array.isArray(value)) return []
35 return value.filter((item): item is string => typeof item === 'string' && item.trim().length > 0)
36}
37
38function nestedStringArg(args: ToolArgs, parentKey: string, ...keys: string[]): string {
39 const parent = args?.[parentKey]

Callers 1

getToolDisplayTitleFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected