MCPcopy
hub / github.com/codeaashu/claude-code / renderToolResultMessage

Function renderToolResultMessage

src/tools/ConfigTool/UI.tsx:15–34  ·  view source on GitHub ↗
(content: Output)

Source from the content-addressed store, hash-verified

13 </Text>;
14}
15export function renderToolResultMessage(content: Output): React.ReactNode {
16 if (!content.success) {
17 return <MessageResponse>
18 <Text color="error">Failed: {content.error}</Text>
19 </MessageResponse>;
20 }
21 if (content.operation === 'get') {
22 return <MessageResponse>
23 <Text>
24 <Text bold>{content.setting}</Text> = {jsonStringify(content.value)}
25 </Text>
26 </MessageResponse>;
27 }
28 return <MessageResponse>
29 <Text>
30 Set <Text bold>{content.setting}</Text> to{' '}
31 <Text bold>{jsonStringify(content.newValue)}</Text>
32 </Text>
33 </MessageResponse>;
34}
35export function renderToolUseRejectedMessage(): React.ReactNode {
36 return <Text color="warning">Config change rejected</Text>;
37}

Callers

nothing calls this directly

Calls 1

jsonStringifyFunction · 0.85

Tested by

no test coverage detected