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

Function markdownBody

packages/opencode/src/cli/cmd/run/tool.ts:1384–1393  ·  view source on GitHub ↗
(content: string)

Source from the content-addressed store, hash-verified

1382}
1383
1384function markdownBody(content: string): RunEntryBody | undefined {
1385 if (!content) {
1386 return undefined
1387 }
1388
1389 return {
1390 type: "markdown",
1391 content,
1392 }
1393}
1394
1395function structuredBody(commit: StreamCommit, raw: string): RunEntryBody | undefined {
1396 const snap = toolSnapshot(commit, raw)

Callers 1

toolEntryBodyFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected