{ "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.95.0" }, "categories": [ "AI", "Chat" ], "activationEvents": [], "contributes": { "chatParticipants": [ { "id": "chat-tools-sample.tools", "fullName": "Tool User", "name": "tools", "description": "I use tools", "isSticky": true, "commands": [ { "name": "list", "description": "List all available tools" } ] } ], "languageModelTools": [ { "name": "chat-tools-sample_tabCount", "tags": [ "editors", "chat-tools-sample" ], "toolReferenceName": "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 } } } }, { "name": "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" ] } }, { "name": "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" ] } } ] }, "main": "./out/extension.js", "scripts": { "vscode:prepublish": "npm run compile", "compile": "tsc -p ./", "watch": "tsc -watch -p ./" }, "devDependencies": { "@types/node": "^20.5.9", "@vscode/prompt-tsx": "^0.3.0-alpha.12", "eslint": "^7.22.0", "run-script-os": "^1.1.6", "tslint": "^6.1.3", "typescript": "^4.0.3" } }