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

Function renderToolUseMessage

src/tools/GlobTool/UI.tsx:14–32  ·  view source on GitHub ↗
({
  pattern,
  path
}: Partial<{
  pattern: string;
  path: string;
}>, {
  verbose
}: {
  verbose: boolean;
})

Source from the content-addressed store, hash-verified

12 return 'Search';
13}
14export function renderToolUseMessage({
15 pattern,
16 path
17}: Partial<{
18 pattern: string;
19 path: string;
20}>, {
21 verbose
22}: {
23 verbose: boolean;
24}): React.ReactNode {
25 if (!pattern) {
26 return null;
27 }
28 if (!path) {
29 return `pattern: "${pattern}"`;
30 }
31 return `pattern: "${pattern}", path: "${verbose ? path : getDisplayPath(path)}"`;
32}
33export function renderToolUseErrorMessage(result: ToolResultBlockParam['content'], {
34 verbose
35}: {

Callers

nothing calls this directly

Calls 1

getDisplayPathFunction · 0.85

Tested by

no test coverage detected