MCPcopy
hub / github.com/anomalyco/opencode / toolView

Function toolView

packages/opencode/src/cli/cmd/run/tool.ts:1281–1288  ·  view source on GitHub ↗
(name?: string)

Source from the content-addressed store, hash-verified

1279}
1280
1281export function toolView(name?: string): ToolView {
1282 return (
1283 rule(name)?.view ?? {
1284 output: true,
1285 final: true,
1286 }
1287 )
1288}
1289
1290export function toolStructuredFinal(commit: StreamCommit): boolean {
1291 const state = commit.toolState ?? commit.part?.state.status

Callers 3

reduceSessionDataFunction · 0.90
toolStructuredFinalFunction · 0.85
toolEntryBodyFunction · 0.85

Calls 1

ruleFunction · 0.85

Tested by

no test coverage detected