MCPcopy Create free account
hub / github.com/anomalyco/opencode / completedToolRawOutput

Function completedToolRawOutput

packages/opencode/src/acp/tool.ts:230–236  ·  view source on GitHub ↗
(state: CompletedToolState)

Source from the content-addressed store, hash-verified

228}
229
230export function completedToolRawOutput(state: CompletedToolState) {
231 return {
232 output: state.output,
233 ...(state.metadata !== undefined ? { metadata: state.metadata } : {}),
234 ...(state.attachments?.length ? { attachments: state.attachments } : {}),
235 }
236}
237
238export function imageContents(attachments: ReadonlyArray<ToolAttachment>): ToolCallContent[] {
239 return extractImageAttachments(attachments).map((attachment): ToolCallContent => {

Callers 2

tool.test.tsFile · 0.90
completedToolUpdateFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected