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

Function runWrite

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

Source from the content-addressed store, hash-verified

330}
331
332function runWrite(p: ToolProps<typeof WriteTool>): ToolInline {
333 return {
334 icon: "←",
335 title: `Write ${toolPath(p.input.filePath)}`,
336 mode: "block",
337 body: p.frame.status === "completed" ? text(p.frame.state.output) : undefined,
338 }
339}
340
341function runWebfetch(p: ToolProps<typeof WebFetchTool>): ToolInline {
342 const url = p.input.url ?? ""

Callers

nothing calls this directly

Calls 2

toolPathFunction · 0.85
textFunction · 0.70

Tested by

no test coverage detected