Skip to content

Troubleshooting ​

SymptomCauseFix
contractTest passes but bad args crash at runtimeContract checks shape, not valuesAdd validateArgs(tool, args) before callTool
TIMEOUT on every calltimeoutMs lower than handler latencyRaise timeoutMs or pass an AbortSignal
OUTPUT_TOO_LARGEDefault 1MB cap exceededSet maxBytes explicitly
Email/keys visible in outputRedaction off by defaultSet redact: true or custom RegExp[]
Types resolve to ESM under requireStale installUpgrade; require types ship as .d.cts