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

Function toolStructuredFinal

packages/opencode/src/cli/cmd/run/tool.ts:1290–1298  ·  view source on GitHub ↗
(commit: StreamCommit)

Source from the content-addressed store, hash-verified

1288}
1289
1290export function toolStructuredFinal(commit: StreamCommit): boolean {
1291 const state = commit.toolState ?? commit.part?.state.status
1292 return (
1293 commit.kind === "tool" &&
1294 commit.phase === "final" &&
1295 state === "completed" &&
1296 Boolean(toolView(commit.tool ?? commit.part?.tool).snap)
1297 )
1298}
1299
1300export function toolInlineInfo(part: ToolPart): ToolInline {
1301 const ctx = frame(part)

Callers 2

entryGroupKeyFunction · 0.90
toolEntryBodyFunction · 0.85

Calls 1

toolViewFunction · 0.85

Tested by

no test coverage detected