MCPcopy Index your code
hub / github.com/ChatLab/ChatLab / saveToDownloads

Method saveToDownloads

src/services/cache/fetch.ts:34–42  ·  view source on GitHub ↗
(
    filename: string,
    dataUrl: string
  )

Source from the content-addressed store, hash-verified

32 }
33
34 async saveToDownloads(
35 filename: string,
36 dataUrl: string
37 ): Promise<{ success: boolean; filePath?: string; error?: string }> {
38 return post<{ success: boolean; filePath?: string; error?: string }>('/cache/save-to-downloads', {
39 filename,
40 dataUrl,
41 })
42 }
43
44 async openDir(cacheId: string): Promise<{ success: boolean; error?: string }> {
45 return post<{ success: boolean; error?: string }>('/cache/open-dir', { cacheId })

Callers

nothing calls this directly

Calls 1

postFunction · 0.90

Tested by

no test coverage detected