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

Function applyToolDisplay

apps/sim/lib/copilot/request/handlers/tool.ts:54–60  ·  view source on GitHub ↗
(toolCall: ToolCallState | undefined)

Source from the content-addressed store, hash-verified

52const logger = createLogger('CopilotToolHandler')
53
54function applyToolDisplay(toolCall: ToolCallState | undefined): void {
55 if (!toolCall?.name) return
56 toolCall.displayTitle = getToolDisplayTitle(
57 toolCall.name,
58 toolCall.params as Record<string, unknown> | undefined
59 )
60}
61
62/**
63 * Upsert the durable `async_tool_calls` row before the authoritative tool-call

Callers 3

handleCallPhaseFunction · 0.85
registerSubagentToolCallFunction · 0.85
registerMainToolCallFunction · 0.85

Calls 1

getToolDisplayTitleFunction · 0.90

Tested by

no test coverage detected