MCPcopy Index your code
hub / github.com/github/copilot-sdk / readFile

Method readFile

nodejs/src/sessionFsProvider.ts:65–65  ·  view source on GitHub ↗

Reads the full content of a file. Throw if the file does not exist.

(path: string)

Source from the content-addressed store, hash-verified

63export interface SessionFsProvider {
64 /** Reads the full content of a file. Throw if the file does not exist. */
65 readFile(path: string): Promise<string>;
66
67 /** Writes content to a file, creating parent directories if needed. */
68 writeFile(path: string, content: string, mode?: number): Promise<void>;

Callers 1

createSessionFsAdapterFunction · 0.65

Calls

no outgoing calls

Tested by

no test coverage detected