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

Function buildDisabledMessage

src/ToolHandler.ts:26–36  ·  view source on GitHub ↗
(
  toolName: string,
  flag: string,
  categoryLabel?: string,
)

Source from the content-addressed store, hash-verified

24}
25
26function buildDisabledMessage(
27 toolName: string,
28 flag: string,
29 categoryLabel?: string,
30): string {
31 const reason = categoryLabel
32 ? `is in category ${categoryLabel} which`
33 : `requires experimental feature ${flag} and`;
34
35 return `Tool ${toolName} ${reason} is currently disabled. Enable it by running chrome-devtools start ${flag}=true. For more information check the README.`;
36}
37
38function getCategoryStatus(
39 category: ToolCategory,

Callers 1

getToolStatusInfoFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected