MCPcopy Create free account
hub / github.com/MoonshotAI/kimi-code / openFile

Method openFile

apps/kimi-web/src/api/daemon/client.ts:917–927  ·  view source on GitHub ↗
(
    sessionId: string,
    input: { path: string; line?: number },
  )

Source from the content-addressed store, hash-verified

915 }
916
917 async openFile(
918 sessionId: string,
919 input: { path: string; line?: number },
920 ): Promise<{ opened: true }> {
921 const body: Record<string, unknown> = { path: input.path };
922 if (input.line !== undefined) body['line'] = input.line;
923 return this.http.post<{ opened: true }>(
924 `/sessions/${encodeURIComponent(sessionId)}/fs:open`,
925 body,
926 );
927 }
928
929 async revealFile(
930 sessionId: string,

Callers

nothing calls this directly

Calls 1

postMethod · 0.65

Tested by

no test coverage detected