MCPcopy Create free account
hub / github.com/codeaashu/claude-code / formatToolInput

Function formatToolInput

src/utils/permissions/permissionExplainer.ts:86–95  ·  view source on GitHub ↗
(input: unknown)

Source from the content-addressed store, hash-verified

84)
85
86function formatToolInput(input: unknown): string {
87 if (typeof input === 'string') {
88 return input
89 }
90 try {
91 return jsonStringify(input, null, 2)
92 } catch {
93 return String(input)
94 }
95}
96
97/**
98 * Extract recent conversation context from messages for the explainer.

Callers 1

Calls 1

jsonStringifyFunction · 0.85

Tested by

no test coverage detected