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

Function buildDisabledMessage

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

Source from the content-addressed store, hash-verified

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

Callers 1

getToolStatusInfoFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected