MCPcopy Create free account
hub / github.com/simstudioai/sim / readStringParam

Function readStringParam

apps/sim/lib/copilot/tools/client/store-utils.ts:61–67  ·  view source on GitHub ↗
(
  params: Record<string, unknown> | undefined,
  key: string
)

Source from the content-addressed store, hash-verified

59}
60
61function readStringParam(
62 params: Record<string, unknown> | undefined,
63 key: string
64): string | undefined {
65 const value = params?.[key]
66 return typeof value === 'string' && value.trim() ? value.trim() : undefined
67}
68
69function formatReadingLabel(target: string | undefined, state: ClientToolCallState): string {
70 const suffix = target ? ` ${target}` : ''

Callers 1

specialToolDisplayFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected