MCPcopy Create free account
hub / github.com/AnukarOP/claude-code-leaked / getFormatDescription

Function getFormatDescription

source code/utils/mcpOutputStorage.ts:18–30  ·  view source on GitHub ↗
(
  type: MCPResultType,
  schema?: unknown,
)

Source from the content-addressed store, hash-verified

16 * Generates a format description string based on the MCP result type and schema.
17 */
18export function getFormatDescription(
19 type: MCPResultType,
20 schema?: unknown,
21): string {
22 switch (type) {
23 case 'toolResult':
24 return 'Plain text'
25 case 'structuredContent':
26 return schema ? `JSON with schema: ${schema}` : 'JSON'
27 case 'contentArray':
28 return schema ? `JSON array with schema: ${schema}` : 'JSON array'
29 }
30}
31
32/**
33 * Generates instruction text for Claude to read from a saved output file.

Callers 1

processMCPResultFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected