MCPcopy Create free account
hub / github.com/Noumena-Network/code / renderToolUseMessage

Function renderToolUseMessage

src/tools/FileWriteTool/UI.tsx:165–183  ·  view source on GitHub ↗
(input: Partial<{
  file_path: string;
  content: string;
}>, {
  verbose
}: {
  verbose: boolean;
})

Source from the content-addressed store, hash-verified

163 return getDisplayPath(input.file_path);
164}
165export function renderToolUseMessage(input: Partial<{
166 file_path: string;
167 content: string;
168}>, {
169 verbose
170}: {
171 verbose: boolean;
172}): React.ReactNode {
173 if (!input.file_path) {
174 return null;
175 }
176 // For plan files, path is already in userFacingName
177 if (input.file_path.startsWith(getPlansDirectory())) {
178 return '';
179 }
180 return <FilePathLink filePath={input.file_path}>
181 {verbose ? input.file_path : getDisplayPath(input.file_path)}
182 </FilePathLink>;
183}
184export function renderToolUseRejectedMessage({
185 file_path,
186 content

Callers

nothing calls this directly

Calls 2

getPlansDirectoryFunction · 0.85
getDisplayPathFunction · 0.85

Tested by

no test coverage detected