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

Method write

packages/node/src/client.ts:104–109  ·  view source on GitHub ↗
(params: WriteFilesParams)

Source from the content-addressed store, hash-verified

102 constructor(private client: AgentClient) {}
103
104 async write(params: WriteFilesParams): Promise<void> {
105 return this.client._fetch<void>(`/v1/sandboxes/${params.sandboxId}/files`, {
106 method: "POST",
107 body: JSON.stringify({ files: params.files }),
108 })
109 }
110
111 async read(params: ReadFileParams): Promise<FileContent> {
112 const encodedPath = encodeURIComponent(params.path)

Callers 15

ensureLocalHttpMcpServerFunction · 0.45
sendRequestMethod · 0.45
constructorMethod · 0.45
copyToClipboardFunction · 0.45
writeStudioWorkspaceFileFunction · 0.45
kubernetesRequestFunction · 0.45
createAgentSandboxFunction · 0.45
POSTFunction · 0.45
server.jsFile · 0.45
kubernetesRequestFunction · 0.45

Calls 1

_fetchMethod · 0.45

Tested by

no test coverage detected