forked from microsoft/vscode-copilot-chat
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
3833 lines (3833 loc) · 128 KB
/
package.json
File metadata and controls
3833 lines (3833 loc) · 128 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
{
"name": "copilot-chat",
"displayName": "GitHub Copilot Chat",
"description": "AI chat features powered by Copilot",
"version": "0.29.0",
"build": "1",
"internalAIKey": "1058ec22-3c95-4951-8443-f26c1f325911",
"internalLargeStorageAriaKey": "ec712b3202c5462fb6877acae7f1f9d7-c19ad55e-3e3c-4f99-984b-827f6d95bd9e-6917",
"ariaKey": "0c6ae279ed8443289764825290e4f9e2-1a736e7c-1324-4338-be46-fc2a58ae4d14-7255",
"buildType": "dev",
"publisher": "GitHub",
"homepage": "https://github.com/features/copilot?editor=vscode",
"license": "SEE LICENSE IN LICENSE.txt",
"repository": {
"type": "git",
"url": "https://github.com/microsoft/vscode-copilot-release"
},
"bugs": {
"url": "https://github.com/microsoft/vscode/issues"
},
"qna": "https://github.com/github-community/community/discussions/categories/copilot",
"icon": "assets/copilot.png",
"pricing": "Trial",
"engines": {
"vscode": "^1.102.0-20250627",
"npm": ">=9.0.0",
"node": ">=22.14.0"
},
"categories": [
"AI",
"Chat",
"Programming Languages",
"Machine Learning"
],
"keywords": [
"ai",
"openai",
"codex",
"pilot",
"snippets",
"documentation",
"autocomplete",
"intellisense",
"refactor",
"javascript",
"python",
"typescript",
"php",
"go",
"golang",
"ruby",
"c++",
"c#",
"java",
"kotlin",
"co-pilot"
],
"badges": [
{
"url": "https://img.shields.io/badge/GitHub%20Copilot-Subscription%20Required-orange",
"href": "https://github.com/github-copilot/signup?editor=vscode",
"description": "%github.copilot.badge.signUp%"
},
{
"url": "https://img.shields.io/github/stars/github/copilot-docs?style=social",
"href": "https://github.com/github/copilot-docs",
"description": "%github.copilot.badge.star%"
},
{
"url": "https://img.shields.io/youtube/channel/views/UC7c3Kb6jYCRj4JOHHZTxKsQ?style=social",
"href": "https://www.youtube.com/@GitHub/search?query=copilot",
"description": "%github.copilot.badge.youtube%"
},
{
"url": "https://img.shields.io/twitter/follow/github?style=social",
"href": "https://twitter.com/github",
"description": "%github.copilot.badge.twitter%"
}
],
"activationEvents": [
"onStartupFinished",
"onLanguageModelChat:copilot",
"onUri",
"onFileSystem:ccreq",
"onFileSystem:ccsettings"
],
"main": "./dist/extension",
"l10n": "./l10n",
"enabledApiProposals": [
"extensionsAny",
"newSymbolNamesProvider",
"interactive",
"codeActionAI",
"activeComment",
"commentReveal",
"contribCommentThreadAdditionalMenu",
"contribCommentsViewThreadMenus",
"documentFiltersExclusive",
"embeddings",
"findTextInFiles",
"findTextInFiles2",
"findFiles2@2",
"textSearchProvider",
"terminalDataWriteEvent",
"terminalExecuteCommandEvent",
"terminalSelection",
"terminalQuickFixProvider",
"mappedEditsProvider",
"aiRelatedInformation",
"chatParticipantAdditions",
"chatEditing",
"defaultChatParticipant@4",
"contribSourceControlInputBoxMenu",
"authLearnMore",
"testObserver",
"aiTextSearchProvider@2",
"chatParticipantPrivate@9",
"chatProvider",
"contribDebugCreateConfiguration",
"chatReferenceDiagnostic",
"textSearchProvider2",
"chatReferenceBinaryData",
"languageModelSystem",
"languageModelCapabilities",
"inlineCompletionsAdditions",
"languageModelDataPart@3",
"chatStatusItem",
"taskProblemMatcherStatus",
"contribLanguageModelToolSets",
"textDocumentChangeReason",
"resolvers"
],
"contributes": {
"languageModelTools": [
{
"name": "copilot_searchCodebase",
"toolReferenceName": "codebase",
"displayName": "%copilot.tools.searchCodebase.name%",
"icon": "$(folder)",
"canBeReferencedInPrompt": true,
"userDescription": "%copilot.codebase.tool.description%",
"modelDescription": "Run a natural language search for relevant code or documentation comments from the user's current workspace. Returns relevant code snippets from the user's current workspace if it is large, or the full contents of the workspace if it is small.",
"tags": [
"codesearch",
"vscode_codesearch"
],
"inputSchema": {
"type": "object",
"properties": {
"query": {
"type": "string",
"description": "The query to search the codebase for. Should contain all relevant context. Should ideally be text that might appear in the codebase, such as function names, variable names, or comments."
}
},
"required": [
"query"
]
}
},
{
"name": "copilot_searchWorkspaceSymbols",
"toolReferenceName": "symbols",
"displayName": "%copilot.tools.searchWorkspaceSymbols.name%",
"icon": "$(symbol)",
"userDescription": "%copilot.workspaceSymbols.tool.description%",
"modelDescription": "Search the user's workspace for code symbols using language services. Use this tool when the user is looking for a specific symbol in their workspace.",
"tags": [
"vscode_codesearch"
],
"inputSchema": {
"type": "object",
"properties": {
"symbolName": {
"type": "string",
"description": "The symbol to search for, such as a function name, class name, or variable name."
}
},
"required": [
"symbolName"
]
}
},
{
"name": "copilot_listCodeUsages",
"toolReferenceName": "usages",
"displayName": "%copilot.tools.listCodeUsages.name%",
"icon": "$(references)",
"canBeReferencedInPrompt": true,
"userDescription": "%copilot.listCodeUsages.tool.description%",
"modelDescription": "Request to list all usages (references, definitions, implementations etc) of a function, class, method, variable etc. Use this tool when \n1. Looking for a sample implementation of an interface or class\n2. Checking how a function is used throughout the codebase.\n3. Including and updating all usages when changing a function, method, or constructor",
"tags": [
"vscode_codesearch"
],
"inputSchema": {
"type": "object",
"properties": {
"symbolName": {
"type": "string",
"description": "The name of the symbol, such as a function name, class name, method name, variable name, etc."
},
"filePaths": {
"type": "array",
"description": "One or more file paths which likely contain the definition of the symbol. For instance the file which declares a class or function. This is optional but will speed up the invocation of this tool and improve the quality of its output.",
"items": {
"type": "string"
}
}
},
"required": [
"symbolName"
]
}
},
{
"name": "copilot_getVSCodeAPI",
"toolReferenceName": "vscodeAPI",
"displayName": "%copilot.tools.getVSCodeAPI.name%",
"icon": "$(references)",
"userDescription": "%copilot.vscode.tool.description%",
"modelDescription": "Get relevant VS Code API references to answer questions about VS Code extension development. Use this tool when the user asks about VS Code APIs, capabilities, or best practices related to developing VS Code extensions. Use it in all VS Code extension development workspaces.",
"inputSchema": {
"type": "object",
"properties": {
"query": {
"type": "string",
"description": "The query to search vscode documentation for. Should contain all relevant context."
}
},
"required": [
"query"
]
},
"tags": [],
"canBeReferencedInPrompt": true
},
{
"displayName": "%copilot.tools.think.name%",
"name": "copilot_think",
"tags": [],
"when": "config.github.copilot.chat.agent.thinkingTool",
"modelDescription": "Use this tool to think deeply about the user's request and organize your thoughts. This tool helps improve response quality by allowing the model to consider the request carefully, brainstorm solutions, and plan complex tasks. It's particularly useful for:\n\n1. Exploring repository issues and brainstorming bug fixes\n2. Analyzing test results and planning fixes\n3. Planning complex refactoring approaches\n4. Designing new features and architecture\n5. Organizing debugging hypotheses\n\nThe tool logs your thought process for transparency but doesn't execute any code or make changes.",
"inputSchema": {
"type": "object",
"properties": {
"thoughts": {
"type": "string",
"description": "Your thoughts about the current task or problem. This should be a clear, structured explanation of your reasoning, analysis, or planning process."
}
},
"required": [
"thoughts"
]
}
},
{
"name": "copilot_findFiles",
"toolReferenceName": "fileSearch",
"displayName": "%copilot.tools.findFiles.name%",
"modelDescription": "Search for files in the workspace by glob pattern. This only returns the paths of matching files. Use this tool when you know the exact filename pattern of the files you're searching for. Glob patterns match from the root of the workspace folder. Examples:\n- **/*.{js,ts} to match all js/ts files in the workspace.\n- src/** to match all files under the top-level src folder.\n- **/foo/**/*.js to match all js files under any foo folder in the workspace.",
"tags": [
"vscode_codesearch"
],
"inputSchema": {
"type": "object",
"properties": {
"query": {
"type": "string",
"description": "Search for files with names or paths matching this glob pattern."
},
"maxResults": {
"type": "number",
"description": "The maximum number of results to return. Do not use this unless necessary, it can slow things down. By default, only some matches are returned. If you use this and don't see what you're looking for, you can try again with a more specific query or a larger maxResults."
}
},
"required": [
"query"
]
}
},
{
"name": "copilot_findTextInFiles",
"toolReferenceName": "textSearch",
"displayName": "%copilot.tools.findTextInFiles.name%",
"modelDescription": "Do a fast text search in the workspace. Use this tool when you want to search with an exact string or regex. If you are not sure what words will appear in the workspace, prefer using regex patterns with alternation (|) or character classes to search for multiple potential words at once instead of making separate searches. For example, use 'function|method|procedure' to look for all of those words at once. Use includePattern to search within files matching a specific pattern, or in a specific file, using a relative path. Use this tool when you want to see an overview of a particular file, instead of using read_file many times to look for code within a file.",
"tags": [
"vscode_codesearch"
],
"inputSchema": {
"type": "object",
"properties": {
"query": {
"type": "string",
"description": "The pattern to search for in files in the workspace. Use regex with alternation (e.g., 'word1|word2|word3') or character classes to find multiple potential words in a single search. Be sure to set the isRegexp property properly to declare whether it's a regex or plain text pattern. Is case-insensitive."
},
"isRegexp": {
"type": "boolean",
"description": "Whether the pattern is a regex."
},
"includePattern": {
"type": "string",
"description": "Search files matching this glob pattern. Will be applied to the relative path of files within the workspace. To search recursively inside a folder, use a proper glob pattern like \"src/folder/**\". Do not use | in includePattern."
},
"maxResults": {
"type": "number",
"description": "The maximum number of results to return. Do not use this unless necessary, it can slow things down. By default, only some matches are returned. If you use this and don't see what you're looking for, you can try again with a more specific query or a larger maxResults."
}
},
"required": [
"query",
"isRegexp"
]
}
},
{
"name": "copilot_applyPatch",
"displayName": "%copilot.tools.applyPatch.name%",
"toolReferenceName": "applyPatch",
"userDescription": "%copilot.tools.applyPatch.description%",
"modelDescription": "Edit text files. Do not use this tool to edit Jupyter notebooks. `apply_patch` allows you to execute a diff/patch against a text file, but the format of the diff specification is unique to this task, so pay careful attention to these instructions. To use the `apply_patch` command, you should pass a message of the following structure as \"input\":\n\n*** Begin Patch\n[YOUR_PATCH]\n*** End Patch\n\nWhere [YOUR_PATCH] is the actual content of your patch, specified in the following V4A diff format.\n\n*** [ACTION] File: [/absolute/path/to/file] -> ACTION can be one of Add, Update, or Delete.\nAn example of a message that you might pass as \"input\" to this function, in order to apply a patch, is shown below.\n\n*** Begin Patch\n*** Update File: /Users/someone/pygorithm/searching/binary_search.py\n@@class BaseClass\n@@ def search():\n- pass\n+ raise NotImplementedError()\n\n@@class Subclass\n@@ def search():\n- pass\n+ raise NotImplementedError()\n\n*** End Patch\nDo not use line numbers in this diff format.",
"inputSchema": {
"type": "object",
"properties": {
"input": {
"type": "string",
"description": "The edit patch to apply."
},
"explanation": {
"type": "string",
"description": "A short description of what the tool call is aiming to achieve."
}
},
"required": [
"input",
"explanation"
]
}
},
{
"name": "copilot_readFile",
"toolReferenceName": "readFile",
"displayName": "%copilot.tools.readFile.name%",
"modelDescription": "Read the contents of a file.\n\nYou must specify the line range you're interested in. Line numbers are 1-indexed. If the file contents returned are insufficient for your task, you may call this tool again to retrieve more content. Prefer reading larger ranges over doing many small reads.",
"tags": [
"vscode_codesearch"
],
"inputSchema": {
"type": "object",
"properties": {
"filePath": {
"description": "The absolute path of the file to read.",
"type": "string"
},
"startLine": {
"type": "number",
"description": "The line number to start reading from, 1-based."
},
"endLine": {
"type": "number",
"description": "The inclusive line number to end reading at, 1-based."
}
},
"required": [
"filePath",
"startLine",
"endLine"
]
}
},
{
"name": "copilot_listDirectory",
"toolReferenceName": "listDirectory",
"displayName": "%copilot.tools.listDirectory.name%",
"modelDescription": "List the contents of a directory. Result will have the name of the child. If the name ends in /, it's a folder, otherwise a file",
"tags": [
"vscode_codesearch"
],
"inputSchema": {
"type": "object",
"properties": {
"path": {
"type": "string",
"description": "The absolute path to the directory to list."
}
},
"required": [
"path"
]
}
},
{
"name": "copilot_runInTerminal",
"toolReferenceName": "runInTerminal",
"displayName": "%copilot.tools.runInTerminal.name%",
"modelDescription": "This tool allows you to execute shell commands in a persistent terminal session, preserving environment variables, working directory, and other context across multiple commands.\n\nCommand Execution:\n- Supports multi-line commands \n\nDirectory Management:\n- Must use absolute paths to avoid navigation issues.\n\nProgram Execution:\n- Supports Python, Node.js, and other executables.\n- Install dependencies via pip, npm, etc.\n\nBackground Processes:\n- For long-running tasks (e.g., servers), set isBackground=true.\n- Returns a terminal ID for checking status and runtime later.\n\nOutput Management:\n- Output is automatically truncated if longer than 60KB to prevent context overflow\n- Use filters like 'head', 'tail', 'grep' to limit output size\n- For pager commands, disable paging: use 'git --no-pager' or add '| cat'\n\nBest Practices:\n- Be specific with commands to avoid excessive output\n- Use targeted queries instead of broad scans\n- Consider using 'wc -l' to count before listing many items",
"tags": [],
"inputSchema": {
"type": "object",
"properties": {
"command": {
"type": "string",
"description": "The command to run in the terminal."
},
"explanation": {
"type": "string",
"description": "A one-sentence description of what the command does. This will be shown to the user before the command is run."
},
"isBackground": {
"type": "boolean",
"description": "Whether the command starts a background process. If true, the command will run in the background and you will not see the output. If false, the tool call will block on the command finishing, and then you will get the output. Examples of background processes: building in watch mode, starting a server. You can check the output of a background process later on by using copilot_getTerminalOutput."
}
},
"required": [
"command",
"explanation",
"isBackground"
]
}
},
{
"name": "copilot_getTerminalOutput",
"toolReferenceName": "getTerminalOutput",
"displayName": "%copilot.tools.getTerminalOutput.name%",
"modelDescription": "Get the output of a terminal command previously started with runInTerminal",
"tags": [],
"inputSchema": {
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "The ID of the terminal command output to check."
}
},
"required": [
"id"
]
}
},
{
"name": "copilot_getTaskOutput",
"toolReferenceName": "getTaskOutput",
"displayName": "%copilot.tools.getTaskOutput.name%",
"modelDescription": "Retrieves the output of a running VS Code task.\n- Use this tool when the user is trying to understand the current project state, debug issues, or analyze task-related errors, output, or status.",
"tags": [],
"inputSchema": {
"type": "object",
"properties": {
"workspaceFolder": {
"type": "string",
"description": "The workspace folder path containing the task"
},
"id": {
"type": "string",
"description": "The task ID to run."
},
"maxCharsToRetrieve": {
"type": "number",
"description": "The maximum number of characters to retrieve from the terminal output."
}
},
"required": [
"id",
"workspaceFolder"
]
}
},
{
"name": "copilot_getErrors",
"displayName": "%copilot.tools.getErrors.name%",
"toolReferenceName": "problems",
"canBeReferencedInPrompt": true,
"icon": "$(error)",
"userDescription": "%copilot.tools.errors.description%",
"modelDescription": "Get any compile or lint errors in a code file. If the user mentions errors or problems in a file, they may be referring to these. Use the tool to see the same errors that the user is seeing. Also use this tool after editing a file to validate the change.",
"tags": [],
"inputSchema": {
"type": "object",
"properties": {
"filePaths": {
"description": "The absolute paths to the files to check for errors.",
"type": "array",
"items": {
"type": "string"
}
}
},
"required": [
"filePaths"
]
}
},
{
"name": "copilot_readProjectStructure",
"displayName": "%copilot.tools.readProjectStructure.name%",
"modelDescription": "Get a file tree representation of the workspace.",
"tags": []
},
{
"name": "copilot_getChangedFiles",
"displayName": "%copilot.tools.getChangedFiles.name%",
"toolReferenceName": "changes",
"icon": "$(diff)",
"canBeReferencedInPrompt": true,
"userDescription": "%copilot.tools.changes.description%",
"modelDescription": "Get git diffs of current file changes in a git repository. Don't forget that you can use copilot_runInTerminal to run git commands in a terminal as well.",
"tags": [
"vscode_codesearch"
],
"inputSchema": {
"type": "object",
"properties": {
"repositoryPath": {
"type": "string",
"description": "The absolute path to the git repository to look for changes in. If not provided, the active git repository will be used."
},
"sourceControlState": {
"type": "array",
"items": {
"type": "string",
"enum": [
"staged",
"unstaged",
"merge-conflicts"
]
},
"description": "The kinds of git state to filter by. Allowed values are: 'staged', 'unstaged', and 'merge-conflicts'. If not provided, all states will be included."
}
}
}
},
{
"name": "copilot_testFailure",
"toolReferenceName": "testFailure",
"displayName": "%copilot.tools.testFailure.name%",
"icon": "$(beaker)",
"userDescription": "%copilot.testFailure.tool.description%",
"modelDescription": "Includes test failure information in the prompt.",
"inputSchema": {},
"tags": [
"vscode_editing_with_tests",
"enable_other_tool_copilot_readFile",
"enable_other_tool_copilot_listDirectory",
"enable_other_tool_copilot_findFiles",
"enable_other_tool_copilot_runTests"
],
"canBeReferencedInPrompt": true
},
{
"name": "copilot_updateUserPreferences",
"toolReferenceName": "updateUserPreferences",
"displayName": "%copilot.tools.updateUserPreferences.name%",
"modelDescription": "Update the user's preferences file with new information about the user and their coding preferences, based on the current chat history.",
"canBeReferencedInPrompt": true,
"tags": [],
"inputSchema": {
"type": "object",
"properties": {
"facts": {
"type": "array",
"items": {
"type": "string"
},
"description": "An array of new user preferences to remember."
}
},
"required": [
"facts"
]
},
"when": "config.github.copilot.chat.enableUserPreferences"
},
{
"name": "copilot_runTests",
"toolReferenceName": "runTests",
"canBeReferencedInPrompt": true,
"displayName": "%copilot.tools.runTests.name%",
"modelDescription": "Runs unit tests in files. Use this tool if the user asks to run tests or when you want to validate changes using unit tests. When possible, always try to provide `files` paths containing the relevant unit tests in order to avoid unnecessarily long test runs.",
"inputSchema": {
"type": "object",
"properties": {
"files": {
"type": "array",
"items": {
"type": "string"
},
"description": "Test files to run. If not provided, all test files will be run."
}
}
},
"tags": [
"vscode_editing_with_tests",
"enable_other_tool_copilot_readFile",
"enable_other_tool_copilot_listDirectory",
"enable_other_tool_copilot_findFiles",
"enable_other_tool_copilot_runTests"
]
},
{
"name": "copilot_getTerminalSelection",
"toolReferenceName": "terminalSelection",
"displayName": "%github.copilot.tools.terminalSelection.name%",
"modelDescription": "Get the user's current selection in the active terminal.",
"userDescription": "%github.copilot.tools.terminalSelection.description%",
"canBeReferencedInPrompt": true,
"icon": "$(terminal)"
},
{
"name": "copilot_getTerminalLastCommand",
"toolReferenceName": "terminalLastCommand",
"displayName": "%github.copilot.tools.terminalLastCommand.name%",
"modelDescription": "Get the user's current selection in the active terminal.",
"userDescription": "%github.copilot.tools.terminalLastCommand.description%",
"canBeReferencedInPrompt": true,
"icon": "$(terminal)"
},
{
"name": "copilot_createNewWorkspace",
"displayName": "%github.copilot.tools.createNewWorkspace.name%",
"toolReferenceName": "newWorkspace",
"icon": "$(new-folder)",
"userDescription": "%github.copilot.tools.createNewWorkspace.userDescription%",
"when": "config.github.copilot.chat.newWorkspaceCreation.enabled",
"modelDescription": "Get steps to help the user create any project in a VS Code workspace. Use this tool to help users set up new projects, including TypeScript-based projects, Model Context Protocol (MCP) servers, VS Code extensions, Next.js projects, Vite projects, or any other project.",
"inputSchema": {
"type": "object",
"properties": {
"query": {
"type": "string",
"description": "The query to use to generate the new workspace. This should be a clear and concise description of the workspace the user wants to create."
}
},
"required": [
"query"
]
},
"tags": [
"enable_other_tool_install_extension",
"enable_other_tool_get_project_setup_info"
]
},
{
"name": "copilot_createAndRunTask",
"displayName": "%github.copilot.tools.createAndRunTask.name%",
"toolReferenceName": "createAndRunTask",
"canBeReferencedInPrompt": false,
"icon": "$(json)",
"userDescription": "%github.copilot.tools.createAndRunTask.userDescription%",
"when": "config.github.copilot.chat.agent.runTasks",
"modelDescription": "For a workspace, this tool will create a task based on the package.json, README.md, and project structure so that the project can be built and run. \n-You can check the output of a task later on by using copilot_getTaskOutput.",
"inputSchema": {
"type": "object",
"properties": {
"workspaceFolder": {
"type": "string",
"description": "The absolute path of the workspace folder where the tasks.json file will be created."
},
"task": {
"type": "object",
"description": "The task to add to the new tasks.json file.",
"properties": {
"label": {
"type": "string",
"description": "The label of the task."
},
"type": {
"type": "string",
"description": "The type of the task. The only supported value is 'shell'.",
"enum": [
"shell"
]
},
"command": {
"type": "string",
"description": "The shell command to run for the task. Use this to specify commands for building or running the application."
},
"args": {
"type": "array",
"description": "The arguments to pass to the command.",
"items": {
"type": "string"
}
},
"isBackground": {
"type": "boolean",
"description": "Whether the task runs in the background without blocking the UI or other tasks. Set to true for long-running processes like watch tasks or servers that should continue executing without requiring user attention. When false, the task will block the terminal until completion."
},
"problemMatcher": {
"type": "array",
"description": "The problem matcher to use to parse task output for errors and warnings. Can be a predefined matcher like '$tsc' (TypeScript), '$eslint-stylish', '$gcc', etc., or a custom pattern defined in tasks.json. This helps VS Code display errors in the Problems panel and enables quick navigation to error locations.",
"items": {
"type": "string"
}
},
"group": {
"type": "string",
"description": "The group to which the task belongs."
}
},
"required": [
"label",
"type",
"command"
]
}
},
"required": [
"task",
"workspaceFolder"
]
},
"tags": [
"enable_other_tool_copilot_getProjectSetupInfo"
]
},
{
"name": "copilot_getProjectSetupInfo",
"displayName": "%github.copilot.tools.getProjectSetupInfo.name%",
"when": "config.github.copilot.chat.newWorkspaceCreation.enabled",
"toolReferenceName": "getProjectSetupInfo",
"modelDescription": "Do not call this tool without first calling the tool to create a workspace. This tool provides a project setup information for a Visual Studio Code workspace based on a project type and programming language.",
"inputSchema": {
"type": "object",
"properties": {
"projectType": {
"type": "string",
"description": "The type of project to create. Supported values are: 'python-script', 'python-project', 'mcp-server', 'model-context-protocol-server', 'vscode-extension', 'next-js', 'vite' and 'other'"
},
"language": {
"type": "string",
"description": "The programming language for the project. Supported: 'javascript', 'typescript', 'python' and 'other'."
}
},
"required": [
"projectType"
]
},
"tags": []
},
{
"name": "copilot_installExtension",
"displayName": "Install Extension in VS Code",
"when": "config.github.copilot.chat.newWorkspaceCreation.enabled",
"toolReferenceName": "installExtension",
"modelDescription": "Install an extension in VS Code. Use this tool to install an extension in Visual Studio Code as part of a new workspace creation process only.",
"inputSchema": {
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "The ID of the extension to install. This should be in the format <publisher>.<extension>."
},
"name": {
"type": "string",
"description": "The name of the extension to install. This should be a clear and concise description of the extension."
}
},
"required": [
"id",
"name"
]
},
"tags": []
},
{
"name": "copilot_runVscodeCommand",
"displayName": "Run VS Code Command",
"when": "config.github.copilot.chat.newWorkspaceCreation.enabled",
"toolReferenceName": "runVscodeCommand",
"modelDescription": "Run a command in VS Code. Use this tool to run a command in Visual Studio Code as part of a new workspace creation process only.",
"inputSchema": {
"type": "object",
"properties": {
"commandId": {
"type": "string",
"description": "The ID of the command to execute. This should be in the format <command>."
},
"name": {
"type": "string",
"description": "The name of the command to execute. This should be a clear and concise description of the command."
},
"args": {
"type": "array",
"description": "The arguments to pass to the command. This should be an array of strings.",
"items": {
"type": "string"
}
}
},
"required": [
"commandId",
"name"
]
},
"tags": []
},
{
"name": "copilot_createNewJupyterNotebook",
"displayName": "Create New Jupyter Notebook",
"icon": "$(notebook)",
"toolReferenceName": "newJupyterNotebook",
"modelDescription": "Generates a new Jupyter Notebook (.ipynb) in VS Code. Jupyter Notebooks are interactive documents commonly used for data exploration, analysis, visualization, and combining code with narrative text. This tool should only be called when the user explicitly requests to create a new Jupyter Notebook.",
"userDescription": "%copilot.tools.newJupyterNotebook.description%",
"inputSchema": {
"type": "object",
"properties": {
"query": {
"type": "string",
"description": "The query to use to generate the jupyter notebook. This should be a clear and concise description of the notebook the user wants to create."
}
},
"required": [
"query"
]
},
"tags": []
},
{
"name": "copilot_runVsCodeTask",
"displayName": "runVsCodeTask",
"toolReferenceName": "runTask",
"modelDescription": "Runs a VS Code task.\n\n- If you see that an appropriate task exists for building or running code, prefer to use this tool to run the task instead of using the run_in_terminal tool.\n- Make sure that any appropriate build or watch task is running before trying to run tests or execute code.\n- If the user asks to run a task, use this tool to do so.\n-You can check the output of a task later on by using copilot_getTaskOutput.",
"inputSchema": {
"type": "object",
"properties": {
"workspaceFolder": {
"type": "string",
"description": "The workspace folder path containing the task"
},
"id": {
"type": "string",
"description": "The task ID to run."
}
},
"required": [
"workspaceFolder",
"id"
]
}
},
{
"name": "copilot_insertEdit",
"toolReferenceName": "insertEdit",
"displayName": "%copilot.tools.insertEdit.name%",
"modelDescription": "Insert new code into an existing file in the workspace. Use this tool once per file that needs to be modified, even if there are multiple changes for a file. Generate the \"explanation\" property first.\nThe system is very smart and can understand how to apply your edits to the files, you just need to provide minimal hints.\nAvoid repeating existing code, instead use comments to represent regions of unchanged code. Be as concise as possible. For example:\n// ...existing code...\n{ changed code }\n// ...existing code...\n{ changed code }\n// ...existing code...\n\nHere is an example of how you should use format an edit to an existing Person class:\nclass Person {\n\t// ...existing code...\n\tage: number;\n\t// ...existing code...\n\tgetAge() {\n\treturn this.age;\n\t}\n}",
"tags": [],
"inputSchema": {
"type": "object",
"properties": {
"explanation": {
"type": "string",
"description": "A short explanation of the edit being made."
},
"filePath": {
"type": "string",
"description": "An absolute path to the file to edit."
},
"code": {
"type": "string",
"description": "The code change to apply to the file.\nThe system is very smart and can understand how to apply your edits to the files, you just need to provide minimal hints.\nAvoid repeating existing code, instead use comments to represent regions of unchanged code. Be as concise as possible. For example:\n// ...existing code...\n{ changed code }\n// ...existing code...\n{ changed code }\n// ...existing code...\n\nHere is an example of how you should use format an edit to an existing Person class:\nclass Person {\n\t// ...existing code...\n\tage: number;\n\t// ...existing code...\n\tgetAge() {\n\t\treturn this.age;\n\t}\n}"
}
},
"required": [
"explanation",
"filePath",
"code"
]
}
},
{
"name": "copilot_createFile",
"toolReferenceName": "createFile",
"displayName": "%copilot.tools.createFile.name%",
"modelDescription": "This is a tool for creating a new file in the workspace. The file will be created with the specified content. The directory will be created if it does not already exist. Never use this tool to edit a file that already exists.",
"tags": [],
"inputSchema": {
"type": "object",
"properties": {
"filePath": {
"type": "string",
"description": "The absolute path to the file to create."
},
"content": {
"type": "string",
"description": "The content to write to the file."
}
},
"required": [
"filePath",
"content"
]
}
},
{
"name": "copilot_createDirectory",
"toolReferenceName": "createDirectory",
"displayName": "%copilot.tools.createDirectory.name%",
"modelDescription": "Create a new directory structure in the workspace. Will recursively create all directories in the path, like mkdir -p. You do not need to use this tool before using create_file, that tool will automatically create the needed directories.",
"tags": [],
"inputSchema": {
"type": "object",
"properties": {
"dirPath": {
"type": "string",
"description": "The absolute path to the directory to create."
}
},
"required": [
"dirPath"
]
}
},
{
"name": "copilot_openSimpleBrowser",
"displayName": "%copilot.tools.openSimpleBrowser.name%",
"modelDescription": "Preview a website or open a URL in the editor's Simple Browser. Useful for quickly viewing locally hosted websites, demos, or resources without leaving the coding environment.",
"userDescription": "%copilot.tools.openSimpleBrowser.description%",
"toolReferenceName": "openSimpleBrowser",
"canBeReferencedInPrompt": true,
"tags": [],
"inputSchema": {
"type": "object",
"properties": {
"url": {
"type": "string",
"description": "The website URL to preview or open in the Simple Browser inside the editor."
}
},
"required": [
"url"
]
}
},
{
"name": "copilot_replaceString",
"toolReferenceName": "replaceString",
"displayName": "%copilot.tools.replaceString.name%",
"modelDescription": "This is a tool for making edits in an existing file in the workspace. For moving or renaming files, use run in terminal tool with the 'mv' command instead. For larger edits, split them into smaller edits and call the edit tool multiple times to ensure accuracy. Before editing, always ensure you have the context to understand the file's contents and context. To edit a file, provide: 1) filePath (absolute path), 2) oldString (must exactly match, including whitespace and indentation, uniquely identifying a single occurrence), and 3) newString (replacement text). Each use of this tool replaces exactly ONE occurrence of oldString. CRITICAL REQUIREMENTS: ensure oldString uniquely identifies the change by including at least 3-5 lines of context both before and after the target text, preserving whitespace and indentation exactly. Never use ...existing code... comments in the oldString or newString. Edits must result in valid, idiomatic code and not leave the file broken!",
"when": "!config.github.copilot.chat.disableReplaceTool",
"inputSchema": {
"type": "object",
"properties": {
"filePath": {
"type": "string",
"description": "An absolute path to the file to edit."
},
"oldString": {
"type": "string",
"description": "The string to be replaced in the file. Never use ...existing code... comments in the oldString."
},
"newString": {
"type": "string",
"description": "The replacement string. Can be empty to delete oldString."
}
},
"required": [
"filePath",
"oldString",
"newString"
]
}
},
{
"name": "copilot_editNotebook",
"toolReferenceName": "editNotebook",
"displayName": "%copilot.tools.editNotebook.name%",
"modelDescription": "This is a tool for editing an existing Notebook file in the workspace. Generate the \"explanation\" property first.\nThe system is very smart and can understand how to apply your edits to the notebooks.\nWhen updating the content of an existing cell, ensure newCode includes at least 3-5 lines of context both before and after the new changes, preserving whitespace and indentation exactly.",
"tags": [],
"inputSchema": {
"type": "object",
"properties": {
"filePath": {
"type": "string",
"description": "An absolute path to the notebook file to edit, or the URI of a untitled, not yet named, file, such as `untitled:Untitled-1."
},
"explanation": {
"type": "string",
"description": "A one-sentence description of edit operation. This will be shown to the user before the tool is run."
},
"cellId": {
"type": "string",
"description": "Id of the cell that needs to be deleted or edited. Use the value `TOP`, `BOTTOM` when inserting a cell at the top or bottom of the notebook, else provide the id of the cell after which a new cell is to be inserted. Remember, if a cellId is provided and editType=insert, then a cell will be inserted after the cell with the provided cellId."
},
"newCode": {
"anyOf": [
{
"type": "string",
"description": "The code for the new or existing cell to be edited. Code should not be wrapped within <VSCode.Cell> tags"
},
{
"type": "array",
"items": {
"type": "string",
"description": "The code for the new or existing cell to be edited. Code should not be wrapped within <VSCode.Cell> tags"
}
}
]
},
"language": {
"type": "string",
"description": "The language of the cell. `markdown`, `python`, `javascript`, `julia`, etc."
},