File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -398,6 +398,8 @@ in the DevTools Elements panel (if any).
398398
399399## Extensions
400400
401+ > NOTE: Extensions are not active by default. Use the '--category-extensions' flag
402+
401403### ` install_extension `
402404
403405** Description:** Installs a Chrome extension from the given path.
Original file line number Diff line number Diff line change @@ -13,7 +13,11 @@ import {get_encoding} from 'tiktoken';
1313
1414import { cliOptions } from '../build/src/bin/chrome-devtools-mcp-cli-options.js' ;
1515import type { ParsedArguments } from '../build/src/bin/chrome-devtools-mcp-cli-options.js' ;
16- import { ToolCategory , labels } from '../build/src/tools/categories.js' ;
16+ import {
17+ ToolCategory ,
18+ OFF_BY_DEFAULT_CATEGORIES ,
19+ labels ,
20+ } from '../build/src/tools/categories.js' ;
1721import { createTools } from '../build/src/tools/tools.js' ;
1822
1923const OUTPUT_PATH = './docs/tool-reference.md' ;
@@ -351,6 +355,12 @@ async function generateReference(
351355
352356 markdown += `## ${ categoryName } \n\n` ;
353357
358+ if ( OFF_BY_DEFAULT_CATEGORIES . includes ( category ) ) {
359+ const flagName = `--category-${ category } ` ;
360+
361+ markdown += `> NOTE: ${ categoryName } are not active by default. Use the '${ flagName } ' flag\n\n` ;
362+ }
363+
354364 // Sort tools within category
355365 categoryTools . sort ( ( a : Tool , b : Tool ) => a . name . localeCompare ( b . name ) ) ;
356366
Original file line number Diff line number Diff line change @@ -27,3 +27,5 @@ export const labels = {
2727 [ ToolCategory . IN_PAGE ] : 'In-page tools' ,
2828 [ ToolCategory . MEMORY ] : 'Memory' ,
2929} ;
30+
31+ export const OFF_BY_DEFAULT_CATEGORIES = [ ToolCategory . EXTENSIONS ] ;
You can’t perform that action at this time.
0 commit comments