MCPcopy Create free account
hub / github.com/ResearAI/DeepScientist / readCliFile

Function readCliFile

src/ui/src/lib/api/cli.ts:102–107  ·  view source on GitHub ↗
(projectId: string, serverId: string, path: string, tailBytes?: number)

Source from the content-addressed store, hash-verified

100}
101
102export async function readCliFile(projectId: string, serverId: string, path: string, tailBytes?: number) {
103 const response = await apiClient.get(`/api/v1/projects/${projectId}/cli/servers/${serverId}/file`, {
104 params: { path, tail_bytes: tailBytes },
105 })
106 return response.data as CliFileContentResponse
107}
108
109export async function writeCliFile(projectId: string, serverId: string, payload: { path: string; content?: string; encoding?: string; operation?: string }) {
110 const response = await apiClient.post(`/api/v1/projects/${projectId}/cli/servers/${serverId}/file`, payload)

Callers 3

getFileContentFunction · 0.90
updateFileContentFunction · 0.90
useFileBrowserFunction · 0.90

Calls 1

getMethod · 0.45

Tested by

no test coverage detected