MCPcopy Index your code
hub / github.com/cloudflare/agents / ReadOperations

Interface ReadOperations

packages/think/src/tools/workspace.ts:29–32  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

27// Workspace, a local filesystem, or anything else.
28
29export interface ReadOperations {
30 readFile(path: string): Promise<string | null>;
31 stat(path: string): Promise<FileInfo | null> | FileInfo | null;
32}
33
34export interface WriteOperations {
35 writeFile(path: string, content: string): Promise<void>;

Callers 10

_hostReadFileMethod · 0.65
workspaceReadOpsFunction · 0.65
workspaceEditOpsFunction · 0.65
workspaceGrepOpsFunction · 0.65
createReadToolFunction · 0.65
createEditToolFunction · 0.65
createGrepToolFunction · 0.65
readExtLogFileMethod · 0.65
workspaceReadOpsFunction · 0.65
createReadToolFunction · 0.65

Implementers 7

WorkspaceFileSystempackages/shell/src/workspace.ts
Workspacepackages/shell/src/filesystem.ts
FileSystemStateBackendpackages/shell/src/memory.ts
FailingWriteFspackages/shell/src/tests/memory.test.t
InMemoryFspackages/shell/src/fs/in-memory-fs.ts
AssistantDirectoryexamples/assistant/src/server.ts
SharedWorkspaceexamples/assistant/src/server.ts

Calls

no outgoing calls

Tested by

no test coverage detected