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

Function textBody

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

Source from the content-addressed store, hash-verified

1371}
1372
1373function textBody(content: string): RunEntryBody | undefined {
1374 if (!content) {
1375 return undefined
1376 }
1377
1378 return {
1379 type: "text",
1380 content,
1381 }
1382}
1383
1384function markdownBody(content: string): RunEntryBody | undefined {
1385 if (!content) {

Callers 1

toolEntryBodyFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected