MCPcopy Create free account
hub / github.com/21st-dev/21st-sdk / read

Method read

packages/node/src/client.ts:111–116  ·  view source on GitHub ↗
(params: ReadFileParams)

Source from the content-addressed store, hash-verified

109 }
110
111 async read(params: ReadFileParams): Promise<FileContent> {
112 const encodedPath = encodeURIComponent(params.path)
113 return this.client._fetch<FileContent>(
114 `/v1/sandboxes/${params.sandboxId}/files?path=${encodedPath}`,
115 )
116 }
117
118 async list(params: ListFilesParams): Promise<FileEntryInfo[]> {
119 const query = new URLSearchParams({ path: params.path })

Callers 14

doGenerateMethod · 0.45
readDeployStreamFunction · 0.45
readStudioWorkspaceFileFunction · 0.45
consumeStreamFunction · 0.45
readStreamFunction · 0.45
GETFunction · 0.45
GETFunction · 0.45
GETFunction · 0.45
pipeSseToResponseFunction · 0.45
streamThreadToResponseFunction · 0.45
readTextFunction · 0.45

Calls 1

_fetchMethod · 0.45

Tested by

no test coverage detected