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

Function runEdit

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

Source from the content-addressed store, hash-verified

347}
348
349function runEdit(p: ToolProps<typeof EditTool>): ToolInline {
350 return {
351 icon: "←",
352 title: `Edit ${toolPath(p.input.filePath)}`,
353 mode: "block",
354 body: p.metadata.diff,
355 }
356}
357
358function runWebSearch(p: ToolProps<typeof WebSearchTool>): ToolInline {
359 const title = webSearchProviderLabel(p.metadata.provider)

Callers

nothing calls this directly

Calls 1

toolPathFunction · 0.85

Tested by

no test coverage detected