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

Function postProcessToolOutput

apps/sim/tools/index.ts:631–633  ·  view source on GitHub ↗
(toolId: string, output: Record<string, unknown>)

Source from the content-addressed store, hash-verified

629}
630
631export function postProcessToolOutput(toolId: string, output: Record<string, unknown>) {
632 return isCustomTool(toolId) ? output : stripInternalFields(output)
633}
634
635/**
636 * Apply post-execution hosted-key cost tracking to a successful tool result.

Callers 2

index.test.tsFile · 0.90
executeToolFunction · 0.85

Calls 2

isCustomToolFunction · 0.90
stripInternalFieldsFunction · 0.85

Tested by

no test coverage detected