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

Function nestedStringArg

apps/sim/lib/copilot/tools/tool-display.ts:38–42  ·  view source on GitHub ↗
(args: ToolArgs, parentKey: string, ...keys: string[])

Source from the content-addressed store, hash-verified

36}
37
38function nestedStringArg(args: ToolArgs, parentKey: string, ...keys: string[]): string {
39 const parent = args?.[parentKey]
40 if (!parent || typeof parent !== 'object') return ''
41 return firstStringArg(parent as Record<string, unknown>, ...keys)
42}
43
44function operationTitle(
45 args: ToolArgs,

Callers 1

getToolDisplayTitleFunction · 0.85

Calls 1

firstStringArgFunction · 0.85

Tested by

no test coverage detected