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

Function readVideoJson

apps/sim/app/api/tools/video/route.ts:46–54  ·  view source on GitHub ↗
(
  response: Response,
  label: string
)

Source from the content-addressed store, hash-verified

44}
45
46async function readVideoJson<T = Record<string, unknown>>(
47 response: Response,
48 label: string
49): Promise<T> {
50 return readResponseJsonWithLimit<T>(response, {
51 maxBytes: MAX_VIDEO_JSON_BYTES,
52 label,
53 })
54}
55
56async function readVideoErrorText(response: Response, label: string): Promise<string> {
57 return readResponseTextWithLimit(response, {

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected