MCPcopy
hub / github.com/simstudioai/sim / getParsedOutputTooLargeMessage

Function getParsedOutputTooLargeMessage

apps/sim/app/api/files/parse/route.ts:408–412  ·  view source on GitHub ↗
(maxBytes: number)

Source from the content-addressed store, hash-verified

406}
407
408function getParsedOutputTooLargeMessage(maxBytes: number): string {
409 return `Parsed file output is too large to return safely. Maximum parsed output is ${prettySize(
410 maxBytes
411 )}.`
412}
413
414function assertParsedContentWithinLimit(content: string, maxBytes?: number): string {
415 if (maxBytes !== undefined) {

Callers 3

handleExternalUrlFunction · 0.85
handleCloudFileFunction · 0.85
handleLocalFileFunction · 0.85

Calls 1

prettySizeFunction · 0.85

Tested by

no test coverage detected