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

Function renderToolUseErrorMessage

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

extractTagFunction · 0.85

Tested by

no test coverage detected