{ "name": "chat-tools-sample", "publisher": "vscode-samples", "displayName": "Copilot Chat Tools Sample", "description": "Sample chat extension that registers and uses LanguageModelTools", "repository": { "type": "git", "url": "https://github.com/Microsoft/vscode-extension-samples" }, "version": "0.1.0", "engines": { "vscode": "^1.93.0" }, "categories": [ "AI", "Chat" ], "activationEvents": [], "enabledApiProposals": [ "lmTools" ], "contributes": { "chatParticipants": [ { "id": "chat-tools-sample.tools", "fullName": "Tool User", "name": "tools", "description": "I use tools", "isSticky": true, "supportsToolReferences": true } ], "languageModelTools": [ { "id": "chat-tools-sample_tabCount", "tags": ["editors", "chat-tools-sample"], "name": "tabCount", "displayName": "Tab Count", "modelDescription": "The number of active tabs in a tab group", "icon": "$(files)", "canBeInvokedManually": true, "parametersSchema": { "type": "object", "properties": { "tabGroup": { "type": "number", "description": "The index of the tab group to check. This is optional- if not specified, the active tab group will be checked.", "default": 0 } } }, "supportedContentTypes": [ "text/plain" ] }, { "id": "chat-tools-sample_findFiles", "tags": [ "files", "search", "chat-tools-sample" ], "displayName": "Find Files", "modelDescription": "Search for files in the current workspace", "parametersSchema": { "type": "object", "properties": { "pattern": { "type": "string", "description": "Search for files that match this glob pattern" } }, "required": ["pattern"] }, "supportedContentTypes": [ "text/plain" ] }, { "id": "chat-tools-sample_runInTerminal", "tags": [ "terminal", "chat-tools-sample" ], "displayName": "Run in Terminal", "modelDescription": "Run a command in a terminal and return the output", "parametersSchema": { "type": "object", "properties": { "command": { "type": "string", "description": "The command to run" } }, "required": [ "command" ] }, "supportedContentTypes": [ "text/plain" ], "requiresConfirmation": true } ] }, "main": "./out/extension.js", "scripts": { "vscode:prepublish": "npm run compile", "compile": "tsc -p ./", "watch": "tsc -watch -p ./" }, "devDependencies": { "@types/node": "^20.5.9", "@types/vscode": "^1.94.0", "@vscode/prompt-tsx": "^0.2.7-alpha", "eslint": "^7.22.0", "run-script-os": "^1.1.6", "tslint": "^6.1.3", "typescript": "^4.0.3" } }