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

Function downloadSizeError

apps/sim/tools/daytona/download_file.ts:7–10  ·  view source on GitHub ↗
(bytes: number)

Source from the content-addressed store, hash-verified

5const MAX_DOWNLOAD_SIZE_BYTES = 100 * 1024 * 1024
6
7function downloadSizeError(bytes: number): Error {
8 const sizeMB = (bytes / (1024 * 1024)).toFixed(2)
9 return new Error(`File size (${sizeMB}MB) exceeds download limit of 100MB`)
10}
11
12export const daytonaDownloadFileTool: ToolConfig<
13 DaytonaDownloadFileParams,

Callers 1

download_file.tsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected