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

Function renderToolUseErrorMessage

src/tools/NotebookEditTool/UI.tsx:60–71  ·  view source on GitHub ↗
(result: ToolResultBlockParam['content'], {
  verbose
}: {
  verbose: boolean;
})

Source from the content-addressed store, hash-verified

58 return <NotebookEditToolUseRejectedMessage notebook_path={input.notebook_path} cell_id={input.cell_id} new_source={input.new_source} cell_type={input.cell_type} edit_mode={input.edit_mode} verbose={verbose} />;
59}
60export function renderToolUseErrorMessage(result: ToolResultBlockParam['content'], {
61 verbose
62}: {
63 verbose: boolean;
64}): React.ReactNode {
65 if (!verbose && typeof result === 'string' && extractTag(result, 'tool_use_error')) {
66 return <MessageResponse>
67 <Text color="error">Error editing notebook</Text>
68 </MessageResponse>;
69 }
70 return <FallbackToolUseErrorMessage result={result} verbose={verbose} />;
71}
72export function renderToolResultMessage({
73 cell_id,
74 new_source,

Callers

nothing calls this directly

Calls 1

extractTagFunction · 0.85

Tested by

no test coverage detected