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

Function sortTools

scripts/generate-docs.ts:101–113  ·  view source on GitHub ↗
(a: ToolWithAnnotations, b: ToolWithAnnotations)

Source from the content-addressed store, hash-verified

99}
100
101function sortTools(a: ToolWithAnnotations, b: ToolWithAnnotations): number {
102 const aHasConditions = hasOffByDefaultConditions(a);
103 const bHasConditions = hasOffByDefaultConditions(b);
104
105 if (aHasConditions && !bHasConditions) {
106 return 1;
107 }
108 if (!aHasConditions && bHasConditions) {
109 return -1;
110 }
111
112 return a.name.localeCompare(b.name);
113}
114
115function generateConfigOptionsMarkdown(): string {
116 let markdown = '';

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected