MCPcopy Index your code
hub / github.com/anomalyco/opencode / runRead

Function runRead

packages/opencode/src/cli/cmd/run/tool.ts:322–330  ·  view source on GitHub ↗
(p: ToolProps<typeof ReadTool>)

Source from the content-addressed store, hash-verified

320}
321
322function runRead(p: ToolProps<typeof ReadTool>): ToolInline {
323 const file = toolPath(p.input.filePath)
324 const description = info(p.frame.input, ["filePath"]) || undefined
325 return {
326 icon: "→",
327 title: `Read ${file}`,
328 ...(description && { description }),
329 }
330}
331
332function runWrite(p: ToolProps<typeof WriteTool>): ToolInline {
333 return {

Callers

nothing calls this directly

Calls 2

toolPathFunction · 0.85
infoFunction · 0.70

Tested by

no test coverage detected