Path: blob/main/test/mcp/src/automationTools/explorer.ts
3520 views
/*---------------------------------------------------------------------------------------------1* Copyright (c) Microsoft Corporation. All rights reserved.2* Licensed under the MIT License. See License.txt in the project root for license information.3*--------------------------------------------------------------------------------------------*/45import { McpServer, RegisteredTool } from '@modelcontextprotocol/sdk/server/mcp.js';6import { ApplicationService } from '../application';78/**9* Explorer and File Management Tools10*/11export function applyExplorerTools(server: McpServer, appService: ApplicationService): RegisteredTool[] {12const tools: RegisteredTool[] = [];1314// Playwright can probably figure this out15// server.tool(16// 'vscode_automation_explorer_open',17// 'Open the file explorer viewlet',18// async () => {19// await app.workbench.explorer.openExplorerView();20// return {21// content: [{22// type: 'text' as const,23// text: 'Opened file explorer'24// }]25// };26// }27// );2829return tools;30}313233