MCPcopy Create free account
hub / github.com/ChromeDevTools/chrome-devtools-mcp / HaveUniqueNames

Function HaveUniqueNames

scripts/update_metrics.ts:27–31  ·  view source on GitHub ↗
(tools: Array<{name: string}>)

Source from the content-addressed store, hash-verified

25import {createTools} from '../build/src/tools/tools.js';
26
27export function HaveUniqueNames(tools: Array<{name: string}>): boolean {
28 const toolNames = tools.map(tool => tool.name);
29 const toolNamesSet = new Set(toolNames);
30 return toolNamesSet.size === toolNames.length;
31}
32
33function writeToolCallMetricsConfig() {
34 const outputPath = path.resolve('src/telemetry/tool_call_metrics.json');

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected