From b01211dec29ea2f3b771a23ad84cf8f9a785aff8 Mon Sep 17 00:00:00 2001 From: Tyler James Leonhardt <2644648+TylerLeonhardt@users.noreply.github.com> Date: Mon, 3 Nov 2025 16:28:26 -0800 Subject: [PATCH] Add tool for searching settings UI (#274920) * Add tool for searching settings UI Since the input box is a monaco editor, it struggles. * push --- test/mcp/src/automationTools/settings.ts | 36 ++++++++++++------------ 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/test/mcp/src/automationTools/settings.ts b/test/mcp/src/automationTools/settings.ts index dc8cb9fb802..91502fe1cc9 100644 --- a/test/mcp/src/automationTools/settings.ts +++ b/test/mcp/src/automationTools/settings.ts @@ -97,24 +97,24 @@ export function applySettingsTools(server: McpServer, appService: ApplicationSer // } // ); - // Playwright can probably figure this one out - // server.tool( - // 'vscode_automation_settings_search_ui', - // 'Search for settings in the settings UI', - // { - // query: z.string().describe('Search query for settings') - // }, - // async (args) => { - // const { query } = args; - // await app.workbench.settingsEditor.searchSettingsUI(query); - // return { - // content: [{ - // type: 'text' as const, - // text: `Searched settings UI for: "${query}"` - // }] - // }; - // } - // ); + tools.push(server.tool( + 'vscode_automation_settings_search_ui', + 'Search for settings in the settings UI', + { + query: z.string().describe('Search query for settings') + }, + async (args) => { + const { query } = args; + const app = await appService.getOrCreateApplication(); + await app.workbench.settingsEditor.searchSettingsUI(query); + return { + content: [{ + type: 'text' as const, + text: `Searched settings UI for: "${query}"` + }] + }; + } + )); return tools; }