MCPcopy Index your code
hub / github.com/Opencode-DCP/opencode-dynamic-context-pruning / stringifyToolContent

Function stringifyToolContent

lib/token-utils.ts:85–87  ·  view source on GitHub ↗
(value: unknown)

Source from the content-addressed store, hash-verified

83export const COMPACTED_TOOL_OUTPUT_PLACEHOLDER = "[Old tool result content cleared]"
84
85function stringifyToolContent(value: unknown): string {
86 return typeof value === "string" ? value : JSON.stringify(value)
87}
88
89export function extractCompletedToolOutput(part: any): string | undefined {
90 if (

Callers 2

extractToolContentFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected