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

Function toolShouldBeSkipped

tests/index.test.ts:370–385  ·  view source on GitHub ↗
(
  tool: ToolDefinition,
  filteredOutCategories: ToolCategory[],
)

Source from the content-addressed store, hash-verified

368}
369
370function toolShouldBeSkipped(
371 tool: ToolDefinition,
372 filteredOutCategories: ToolCategory[],
373) {
374 if (tool.annotations?.conditions) {
375 return true;
376 }
377 if (
378 tool.annotations?.category &&
379 filteredOutCategories.includes(tool.annotations?.category)
380 ) {
381 return true;
382 }
383
384 return false;
385}

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected