Chrome DevTools for coding agents
fix(extensions): say list_extensions only lists unpacked extensions (#3433)
John Costa1383bb9b4145
diff --git a/docs/tool-reference.md b/docs/tool-reference.mdindex a485b764..417a9620 100644--- a/docs/tool-reference.md+++ b/docs/tool-reference.md@@ -733,7 +733,7 @@ in the DevTools Elements panel (if any).### `list_extensions`-**Description:** Lists all the Chrome extensions installed in the browser. This includes their name, ID, version, and enabled status. (requires flag: --categoryExtensions=true)+**Description:** Lists the unpacked Chrome extensions loaded in the browser. This includes their name, ID, version, and enabled status. Extensions installed from the Chrome Web Store are not included. (requires flag: --categoryExtensions=true)**Parameters:** Nonediff --git a/skills/chrome-devtools-cli/SKILL.md b/skills/chrome-devtools-cli/SKILL.mdindex b1e8ae12..d035b8db 100644--- a/skills/chrome-devtools-cli/SKILL.md+++ b/skills/chrome-devtools-cli/SKILL.md@@ -159,7 +159,7 @@ chrome-devtools screencast_stop 1 # Stops the active screencast on page 1## Extensions```bash-chrome-devtools list_extensions # Lists all the Chrome extensions installed in the browser+chrome-devtools list_extensions # Lists the unpacked Chrome extensions loaded in the browserchrome-devtools install_extension "/path/to/extension" # Installs a Chrome extension from the given pathchrome-devtools uninstall_extension "extension_id" # Uninstalls a Chrome extension by its IDchrome-devtools reload_extension "extension_id" # Reloads an unpacked Chrome extension by its IDdiff --git a/src/McpResponse.ts b/src/McpResponse.tsindex 63f95081..a764afb2 100644--- a/src/McpResponse.ts+++ b/src/McpResponse.ts@@ -1618,7 +1618,7 @@ Call ${handleDialog(this.#config.resolved).name} to handle it before continuing.structuredContent.extensions = extensionArray;response.push('## Extensions');if (extensionArray.length === 0) {- response.push('No extensions installed.');+ response.push('No unpacked extensions found.');} else {const extensionsMessage = extensionArray.map(extension => {diff --git a/src/config/cli-options.ts b/src/config/cli-options.tsindex 52a20a91..fe5d719a 100644--- a/src/config/cli-options.ts+++ b/src/config/cli-options.ts@@ -1406,7 +1406,7 @@ export const commands: Commands = {},list_extensions: {description:- 'Lists all the Chrome extensions installed in the browser. This includes their name, ID, version, and enabled status. (requires flag: --categoryExtensions=true)',+ 'Lists the unpacked Chrome extensions loaded in the browser. This includes their name, ID, version, and enabled status. Extensions installed from the Chrome Web Store are not included. (requires flag: --categoryExtensions=true)',category: 'Extensions',args: {},},diff --git a/src/tools/extensions.ts b/src/tools/extensions.tsindex d97edb0d..4bb04d93 100644--- a/src/tools/extensions.ts+++ b/src/tools/extensions.ts@@ -56,7 +56,7 @@ export const uninstallExtension: ToolFactory = defineTool(() => ({export const listExtensions: ToolFactory = defineTool(() => ({name: 'list_extensions',description:- 'Lists all the Chrome extensions installed in the browser. This includes their name, ID, version, and enabled status.',+ 'Lists the unpacked Chrome extensions loaded in the browser. This includes their name, ID, version, and enabled status. Extensions installed from the Chrome Web Store are not included.',annotations: {category: ToolCategory.EXTENSIONS,readOnlyHint: true,diff --git a/tests/McpResponse.test.ts b/tests/McpResponse.test.tsindex dc09ae2c..638e5761 100644--- a/tests/McpResponse.test.ts+++ b/tests/McpResponse.test.ts@@ -1055,7 +1055,7 @@ describe('extensions', () => {const emptyResult = await response.handle(context);const emptyText = getTextContent(emptyResult.content[0]);assert.ok(- emptyText.includes('No extensions installed.'),+ emptyText.includes('No unpacked extensions found.'),'Should show message for ampty extensions',);