MCPcopy Index your code
hub / github.com/xerrors/Yuxi / downloadWorkspaceKnowledgeFile

Function downloadWorkspaceKnowledgeFile

web/src/apis/workspace_api.js:38–41  ·  view source on GitHub ↗
(kbId, fileId, variant = 'original')

Source from the content-addressed store, hash-verified

36}
37
38export const downloadWorkspaceKnowledgeFile = (kbId, fileId, variant = 'original') => {
39 const query = buildQuery({ kb_id: kbId, file_id: fileId, variant })
40 return apiGet(`/api/workspace/knowledge/download?${query}`, {}, true, 'blob')
41}
42
43export const saveWorkspaceFileContent = (path, content) => {
44 return apiPut('/api/workspace/file', { path, content })

Callers

nothing calls this directly

Calls 2

apiGetFunction · 0.90
buildQueryFunction · 0.70

Tested by

no test coverage detected