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

Function removeToolCallContentBlock

apps/sim/lib/copilot/request/handlers/tool.ts:354–361  ·  view source on GitHub ↗
(context: StreamingContext, toolCallId: string)

Source from the content-addressed store, hash-verified

352}
353
354function removeToolCallContentBlock(context: StreamingContext, toolCallId: string): void {
355 for (let i = context.contentBlocks.length - 1; i >= 0; i--) {
356 const block = context.contentBlocks[i]
357 if (block.type === 'tool_call' && block.toolCall?.id === toolCallId) {
358 context.contentBlocks.splice(i, 1)
359 }
360 }
361}
362
363function registerSubagentToolCall(
364 context: StreamingContext,

Callers 2

registerSubagentToolCallFunction · 0.85
registerMainToolCallFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected