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

Function renderToolUseMessage

src/tools/FileEditTool/UI.tsx:57–76  ·  view source on GitHub ↗
({
  file_path
}: {
  file_path?: string;
}, {
  verbose
}: {
  verbose: boolean;
})

Source from the content-addressed store, hash-verified

55 return getDisplayPath(input.file_path);
56}
57export function renderToolUseMessage({
58 file_path
59}: {
60 file_path?: string;
61}, {
62 verbose
63}: {
64 verbose: boolean;
65}): React.ReactNode {
66 if (!file_path) {
67 return null;
68 }
69 // For plan files, path is already in userFacingName
70 if (file_path.startsWith(getPlansDirectory())) {
71 return '';
72 }
73 return <FilePathLink filePath={file_path}>
74 {verbose ? file_path : getDisplayPath(file_path)}
75 </FilePathLink>;
76}
77export function renderToolResultMessage({
78 filePath,
79 structuredPatch,

Callers

nothing calls this directly

Calls 1

getDisplayPathFunction · 0.85

Tested by

no test coverage detected