MCPcopy Create free account
hub / github.com/Roy3838/Observer / renderToolHTML

Function renderToolHTML

app/src/utils/exportUtils.ts:119–134  ·  view source on GitHub ↗
(tool: ToolCall)

Source from the content-addressed store, hash-verified

117 };
118
119 const renderToolHTML = (tool: ToolCall): string => {
120 const timestamp = formatTimestamp(tool.timestamp);
121 const status = tool.status === 'success' ? '✅' : '❌';
122
123 return `
124 <div class="tool-item ${tool.status}">
125 <div class="tool-header">
126 <span class="tool-status">${status}</span>
127 <strong>${tool.name}</strong>
128 <span class="timestamp">${timestamp}</span>
129 </div>
130 ${tool.error ? `<div class="tool-error">Error: ${tool.error}</div>` : ''}
131 ${tool.params ? `<div class="tool-params">Params: ${JSON.stringify(tool.params, null, 2)}</div>` : ''}
132 </div>
133 `;
134 };
135
136 const renderIterationHTML = (iteration: IterationData): string => {
137 const startTime = formatTimestamp(iteration.startTime);

Callers

nothing calls this directly

Calls 1

formatTimestampFunction · 0.70

Tested by

no test coverage detected