MCPcopy Index your code
hub / github.com/codeaashu/claude-code / renderToolUseMessage

Function renderToolUseMessage

src/tools/ConfigTool/UI.tsx:6–14  ·  view source on GitHub ↗
(input: Partial<Input>)

Source from the content-addressed store, hash-verified

4import { jsonStringify } from '../../utils/slowOperations.js';
5import type { Input, Output } from './ConfigTool.js';
6export function renderToolUseMessage(input: Partial<Input>): React.ReactNode {
7 if (!input.setting) return null;
8 if (input.value === undefined) {
9 return <Text dimColor>Getting {input.setting}</Text>;
10 }
11 return <Text dimColor>
12 Setting {input.setting} to {jsonStringify(input.value)}
13 </Text>;
14}
15export function renderToolResultMessage(content: Output): React.ReactNode {
16 if (!content.success) {
17 return <MessageResponse>

Callers

nothing calls this directly

Calls 1

jsonStringifyFunction · 0.85

Tested by

no test coverage detected