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

Function stringArg

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

Source from the content-addressed store, hash-verified

17type ToolArgs = Record<string, unknown> | undefined
18
19function stringArg(args: ToolArgs, key: string): string {
20 const value = args?.[key]
21 return typeof value === 'string' ? value.trim() : ''
22}
23
24function firstStringArg(args: ToolArgs, ...keys: string[]): string {
25 for (const key of keys) {

Callers 4

firstStringArgFunction · 0.85
operationTitleFunction · 0.85
workspaceFileTitleFunction · 0.85
getToolDisplayTitleFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected