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

Function renderToolResultMessage

src/tools/WebSearchTool/UI.tsx:79–92  ·  view source on GitHub ↗
(output: Output)

Source from the content-addressed store, hash-verified

77 }
78}
79export function renderToolResultMessage(output: Output): React.ReactNode {
80 const {
81 searchCount
82 } = getSearchSummary(output.results ?? []);
83 const timeDisplay = output.durationSeconds >= 1 ? `${Math.round(output.durationSeconds)}s` : `${Math.round(output.durationSeconds * 1000)}ms`;
84 return <Box justifyContent="space-between" width="100%">
85 <MessageResponse height={1}>
86 <Text>
87 Did {searchCount} search
88 {searchCount !== 1 ? 'es' : ''} in {timeDisplay}
89 </Text>
90 </MessageResponse>
91 </Box>;
92}
93export function getToolUseSummary(input: Partial<{
94 query: string;
95}> | undefined): string | null {

Callers

nothing calls this directly

Calls 1

getSearchSummaryFunction · 0.85

Tested by

no test coverage detected