MCPcopy Create free account
hub / github.com/Zoo-Code-Org/Zoo-Code / execute

Method execute

src/core/tools/ReadFileTool.ts:74–81  ·  view source on GitHub ↗
(params: ReadFileToolParams, task: Task, callbacks: ToolCallbacks)

Source from the content-addressed store, hash-verified

72 readonly name = "read_file" as const
73
74 async execute(params: ReadFileToolParams, task: Task, callbacks: ToolCallbacks): Promise<void> {
75 // Dispatch to legacy or new execution path based on format
76 if (isLegacyReadFileParams(params)) {
77 return this.executeLegacy(params.files, task, callbacks)
78 }
79
80 return this.executeNew(params, task, callbacks)
81 }
82
83 /**
84 * Execute new single-file format with slice/indentation mode support.

Callers

nothing calls this directly

Calls 3

executeLegacyMethod · 0.95
executeNewMethod · 0.95
isLegacyReadFileParamsFunction · 0.90

Tested by

no test coverage detected