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
5666 lines (5666 loc) · 187 KB
/
package.json
File metadata and controls
5666 lines (5666 loc) · 187 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.37.0",
"build": "1",
"internalAIKey": "1058ec22-3c95-4951-8443-f26c1f325911",
"completionsCoreVersion": "1.378.1799",
"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-chat"
},
"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.109.0-20260124",
"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",
"onLanguageModelAccess:feima",
"onUri",
"onFileSystem:ccreq",
"onFileSystem:ccsettings",
"onCustomAgentProvider",
"onInstructionsProvider"
],
"main": "./dist/extension",
"l10n": "./l10n",
"enabledApiProposals": [
"extensionsAny",
"newSymbolNamesProvider",
"interactive",
"codeActionAI",
"activeComment",
"commentReveal",
"contribCommentThreadAdditionalMenu",
"contribCommentsViewThreadMenus",
"contribChatEditorInlineGutterMenu",
"documentFiltersExclusive",
"embeddings",
"findTextInFiles",
"findTextInFiles2",
"languageModelToolSupportsModel@1",
"findFiles2@2",
"textSearchProvider",
"terminalDataWriteEvent",
"terminalExecuteCommandEvent",
"terminalSelection",
"terminalQuickFixProvider",
"mappedEditsProvider",
"aiRelatedInformation",
"aiSettingsSearch",
"chatParticipantAdditions",
"defaultChatParticipant@4",
"contribSourceControlInputBoxMenu",
"authLearnMore",
"testObserver",
"aiTextSearchProvider@2",
"chatParticipantPrivate@12",
"chatProvider@4",
"contribDebugCreateConfiguration",
"chatReferenceDiagnostic",
"textSearchProvider2",
"chatReferenceBinaryData",
"languageModelSystem",
"languageModelCapabilities",
"inlineCompletionsAdditions",
"chatStatusItem",
"taskProblemMatcherStatus",
"contribLanguageModelToolSets",
"textDocumentChangeReason",
"resolvers",
"taskExecutionTerminal",
"dataChannels",
"languageModelThinkingPart",
"chatSessionsProvider@3",
"devDeviceId",
"contribEditorContentMenu",
"chatPromptFiles",
"mcpServerDefinitions",
"tabInputMultiDiff",
"workspaceTrust"
],
"contributes": {
"authentication": [
{
"id": "feima-authentication",
"label": "Feima"
}
],
"languageModelTools": [
{
"name": "copilot_searchCodebase",
"toolReferenceName": "codebase",
"displayName": "%copilot.tools.searchCodebase.name%",
"icon": "$(folder)",
"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": "search_subagent",
"toolReferenceName": "searchSubagent",
"displayName": "%copilot.tools.searchSubagent.name%",
"icon": "$(search)",
"userDescription": "%copilot.tools.searchSubagent.description%",
"modelDescription": "Launch an iterative search-focused subagent that orchestrates semantic_search, grep_search, file_search and read_file tool calls to explore and gather relevant workspace code for a natural language query.\n CALL THIS FOR ANY TASK THAT REQUIRES CODEBASE EXPLORATION!\n\nRemember:\n1. Perform tool calls in parallel whenever possible\n2. Avoid redundant calls -- don't repeat identical searches.\n3. Stop once you have high-confidence, non-duplicative snippets covering the query scope.\n\nReturns: A list of relevant files/snippet locations in the workspace.\n\nInput fields:\n- query: Natural language description of what to search for.\n- description: Short user-visible invocation message. \n- details: 2-3 sentences detailing the objective of the search agent.",
"tags": [
"vscode_codesearch"
],
"inputSchema": {
"type": "object",
"properties": {
"query": {
"type": "string",
"description": "Natural language description of what to search for."
},
"description": {
"type": "string",
"description": "A short (3-5 word) description of the task."
},
"details": {
"type": "string",
"description": "A more detailed description of the objective for the search subagent. This helps the sub-agent remain on task and understand its purpose."
}
},
"required": [
"query",
"description",
"details"
]
}
},
{
"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",
"legacyToolReferenceFullNames": [
"usages"
],
"displayName": "%copilot.tools.listCodeUsages.
179B
name%",
"icon": "$(references)",
"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 comprehensive VS Code API documentation and references for extension development. This tool provides authoritative documentation for VS Code's extensive API surface, including proposed APIs, contribution points, and best practices. Use this tool for understanding complex VS Code API interactions.\n\nWhen to use this tool:\n- User asks about specific VS Code APIs, interfaces, or extension capabilities\n- Need documentation for VS Code extension contribution points (commands, views, settings, etc.)\n- Questions about proposed APIs and their usage patterns\n- Understanding VS Code extension lifecycle, activation events, and packaging\n- Best practices for VS Code extension development architecture\n- API examples and code patterns for extension features\n- Troubleshooting extension-specific issues or API limitations\n\nWhen NOT to use this tool:\n- Creating simple standalone files or scripts unrelated to VS Code extensions\n- General programming questions not specific to VS Code extension development\n- Questions about using VS Code as an editor (user-facing features)\n- Non-extension related development tasks\n- File creation or editing that doesn't involve VS Code extension APIs\n\nCRITICAL usage guidelines:\n1. Always include specific API names, interfaces, or concepts in your query\n2. Mention the extension feature you're trying to implement\n3. Include context about proposed vs stable APIs when relevant\n4. Reference specific contribution points when asking about extension manifest\n5. Be specific about the VS Code version or API version when known\n\nScope: This tool is for EXTENSION DEVELOPMENT ONLY - building tools that extend VS Code itself, not for general file creation or non-extension programming tasks.",
"inputSchema": {
"type": "object",
"properties": {
"query": {
"type": "string",
"description": "The query to search vscode documentation for. Should contain all relevant context."
}
},
"required": [
"query"
]
},
"tags": []
},
{
"name": "copilot_findFiles",
"toolReferenceName": "fileSearch",
"displayName": "%copilot.tools.findFiles.name%",
"userDescription": "%copilot.tools.findFiles.userDescription%",
"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%",
"userDescription": "%copilot.tools.findTextInFiles.userDescription%",
"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 'includeIgnoredFiles' to include files normally ignored by .gitignore, other ignore files, and `files.exclude` and `search.exclude` settings. Warning: using this may cause the search to be slower, only set it when you want to search in ignored folders like node_modules or build outputs. 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."
},
"includeIgnoredFiles": {
"type": "boolean",
"description": "Whether to include files that would normally be ignored according to .gitignore, other ignore files and `files.exclude` and `search.exclude` settings. Warning: using this may cause the search to be slower. Only set it when you want to search in ignored folders like node_modules or build outputs."
}
},
"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",
"legacyToolReferenceFullNames": [
"search/readFile"
],
"displayName": "%copilot.tools.readFile.name%",
"userDescription": "%copilot.tools.readFile.userDescription%",
"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%",
"userDescription": "%copilot.tools.listDirectory.userDescription%",
"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_getErrors",
"displayName": "%copilot.tools.getErrors.name%",
"toolReferenceName": "problems",
"legacyToolReferenceFullNames": [
"problems"
],
"icon": "$(error)",
"userDescription": "%copilot.tools.errors.description%",
"modelDescription": "Get any compile or lint errors in a specific file or across all files. 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. If the user asks you to analyze all errors, or does not specify a file, use this tool to gather errors for all files. 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 or folders to check for errors. Omit 'filePaths' when retrieving all errors.",
"type": "array",
"items": {
"type": "string"
}
}
}
}
},
{
"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",
"legacyToolReferenceFullNames": [
"changes"
],
"icon": "$(diff)",
"userDescription": "%copilot.tools.changes.description%",
"modelDescription": "Get git diffs of current file changes in a git repository. Don't forget that you can use run_in_terminal 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",
"legacyToolReferenceFullNames": [
"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"
]
},
{
"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_createNewWorkspace",
"displayName": "%github.copilot.tools.createNewWorkspace.name%",
"toolReferenceName": "newWorkspace",
"legacyToolReferenceFullNames": [
"new/newWorkspace"
],
"icon": "$(new-folder)",
"userDescription": "%github.copilot.tools.createNewWorkspace.userDescription%",
"when": "config.github.copilot.chat.newWorkspaceCreation.enabled",
"modelDescription": "Get comprehensive setup steps to help the user create complete project structures in a VS Code workspace. This tool is designed for full project initialization and scaffolding, not for creating individual files.\n\nWhen to use this tool:\n- User wants to create a new complete project from scratch\n- Setting up entire project frameworks (TypeScript projects, React apps, Node.js servers, etc.)\n- Initializing Model Context Protocol (MCP) servers with full structure\n- Creating VS Code extensions with proper scaffolding\n- Setting up Next.js, Vite, or other framework-based projects\n- User asks for \"new project\", \"create a workspace\", \"set up a [framework] project\"\n- Need to establish complete development environment with dependencies, config files, and folder structure\n\nWhen NOT to use this tool:\n- Creating single files or small code snippets\n- Adding individual files to existing projects\n- Making modifications to existing codebases\n- User asks to \"create a file\" or \"add a component\"\n- Simple code examples or demonstrations\n- Debugging or fixing existing code\n\nThis tool provides complete project setup including:\n- Folder structure creation\n- Package.json and dependency management\n- Configuration files (tsconfig, eslint, etc.)\n- Initial boilerplate code\n- Development environment setup\n- Build and run instructions\n\nUse other file creation tools for individual files within existing projects.",
"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_getProjectSetupInfo",
"displayName": "%github.copilot.tools.getProjectSetupInfo.name%",
"when": "config.github.copilot.chat.newWorkspaceCreation.enabled",
"toolReferenceName": "getProjectSetupInfo",
"legacyToolReferenceFullNames": [
"new/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'"
}
},
"required": [
"projectType"
]
},
"tags": []
},
{
"name": "copilot_installExtension",
"displayName": "Install Extension in VS Code",
"when": "config.github.copilot.chat.newWorkspaceCreation.enabled",
"toolReferenceName": "installExtension",
"legacyToolReferenceFullNames": [
"new/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": "runCommand",
"legacyToolReferenceFullNames": [
"new/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": "createJupyterNotebook",
"legacyToolReferenceFullNames": [
"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. Prefer creating plain Python files or similar unless a user explicitly requests creating a new Jupyter Notebook or already has a Jupyter Notebook opened or exists in the workspace.",
"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_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",
"legacyToolReferenceFullNames": [
"createFile"
],
"displayName": "%copilot.tools.createFile.name%",
"userDescription": "%copilot.tools.createFile.description%",
"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",
"legacyToolReferenceFullNames": [
"createDirectory"
],
"displayName": "%copilot.tools.createDirectory.name%",
"userDescription": "%copilot.tools.createDirectory.description%",
"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.",
5385
"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",
"legacyToolReferenceFullNames": [
"openSimpleBrowser"
],
"tags": [],
"inputSchema": {
"type": "object",
"properties": {
"url": {
"type": "string",
"description": "The website URL to preview or open in the Simple Browser inside the editor. Must be either an http or https URL"
}
},
"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 be the exact literal text to replace including all whitespace, indentation, newlines, and surrounding code etc), and 3) newString (MUST be the exact literal text to replace \\`oldString\\` with (also including all whitespace, indentation, newlines, and surrounding code etc.). Ensure the resulting code is correct and idiomatic.). Each use of this tool replaces exactly ONE occurrence of oldString.\n\nCRITICAL for \\`oldString\\`: Must uniquely identify the single instance to change. Include at least 3 lines of context BEFORE and AFTER the target text, matching whitespace and indentation precisely. If this string matches multiple locations, or does not match exactly, the tool will fail. Never use 'Lines 123-456 omitted' from summarized documents or ...existing code... comments in the oldString or newString.",
"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 exact literal text to replace, preferably unescaped. For single replacements (default), include at least 3 lines of context BEFORE and AFTER the target text, matching whitespace and indentation precisely. For multiple replacements, specify expected_replacements parameter. If this string is not the exact literal text (i.e. you escaped it) or does not match exactly, the tool will fail."
},
"newString": {
"type": "string",
"description": "The exact literal text to replace `old_string` with, preferably unescaped. Provide the EXACT text. Ensure the resulting code is correct and idiomatic."
}
},
"required": [
"filePath",
"oldString",
"newString"
]
}
},
{
"name": "copilot_multiReplaceString",
"toolReferenceName": "multiReplaceString",
"displayName": "%copilot.tools.multiReplaceString.name%",
"modelDescription": "This tool allows you to apply multiple replace_string_in_file operations in a single call, which is more efficient than calling replace_string_in_file multiple times. It takes an array of replacement operations and applies them sequentially. Each replacement operation has the same parameters as replace_string_in_file: filePath, oldString, newString, and explanation. This tool is ideal when you need to make multiple edits across different files or multiple edits in the same file. The tool will provide a summary of successful and failed operations.",
"when": "!config.github.copilot.chat.disableReplaceTool",
"inputSchema": {
"type": "object",
"properties": {
"explanation": {
"type": "string",
"description": "A brief explanation of what the multi-replace operation will accomplish."
},
"replacements": {
"type": "array",
"description": "An array of replacement operations to apply sequentially.",
"items": {
"type": "object",
"properties": {
"filePath": {
"type": "string",
"description": "An absolute path to the file to edit."
},
"oldString": {
"type": "string",
"description": "The exact literal text to replace, preferably unescaped. Include at least 3 lines of context BEFORE and AFTER the target text, matching whitespace and indentation precisely. If this string is not the exact literal text or does not match exactly, this replacement will fail."
},
"newString": {
"type": "string",
"description": "The exact literal text to replace `oldString` with, preferably unescaped. Provide the EXACT text. Ensure the resulting code is correct and idiomatic."
}
},
"required": [
"filePath",
"oldString",
"newString"
]
},
"minItems": 1
}
},
"required": [
"explanation",
"replacements"
]
}
},
{
"name": "copilot_editNotebook",
"toolReferenceName": "editNotebook",
"icon": "$(pencil)",
"displayName": "%copilot.tools.editNotebook.name%",
"userDescription": "%copilot.tools.editNotebook.userDescription%",
"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 preserves whitespace and indentation exactly and does NOT include any code markers such as (...existing code...).",
"tags": [
"enable_other_tool_copilot_getNotebookSummary"
],
"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."
},
"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. Do NOT include code markers such as (...existing code...) to indicate existing code."
},
{
"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."
},
"editType": {
"type": "string",
"enum": [
"insert",
"delete",
"edit"
],
"description": "The operation peformed on the cell, whether `insert`, `delete` or `edit`.\nUse the `editType` field to specify the operation: `insert` to add a new cell, `edit` to modify an existing cell's content, and `delete` to remove a cell."
}
},
"required": [
"filePath",
"editType",
"cellId"
]
}
},
{
"name": "copilot_runNotebookCell",
"displayName": "%copilot.tools.runNotebookCell.name%",
"toolReferenceName": "runNotebookCell",
"legacyToolReferenceFullNames": [
"runNotebooks/runCell"
],
"icon": "$(play)",
"modelDescription": "This is a tool for running a code cell in a notebook file directly in the notebook editor. The output from the execution will be returned. Code cells should be run as they are added or edited when working through a problem to bring the kernel state up to date and ensure the code executes successfully. Code cells are ready to run and don't require any pre-processing. If asked to run the first cell in a notebook, you should run the first code cell since markdown cells cannot be executed. NOTE: Avoid executing Markdown cells or providing Markdown cell IDs, as Markdown cells cannot be executed.",
"userDescription": "%copilot.tools.runNotebookCell.description%",
"tags": [
"enable_other_tool_copilot_getNotebookSummary"
],
"inputSchema": {
"type": "object",
"properties": {
"filePath": {
"type": "string",
"description": "An absolute path to the notebook file with the cell to run, or the URI of a untitled, not yet named, file, such as `untitled:Untitled-1.ipynb"
},
"reason": {
"type": "string",
"description": "An optional explanation of why the cell is being run. This will be shown to the user before the tool is run and is not necessary if it's self-explanatory."
},
"cellId": {
"type": "string",
"description": "The ID for the code cell to execute. Avoid providing markdown cell IDs as nothing will be executed."
},
"continueOnError": {
"type": "boolean",
"description": "Whether or not execution should continue for remaining cells if an error is encountered. Default to false unless instructed otherwise."
}
},
"required": [
"filePath",
"cellId"
]
}
},
{
"name": "copilot_getNotebookSummary",
"toolReferenceName": "getNotebookSummary",
"legacyToolReferenceFullNames": [
"runNotebooks/getNotebookSummary"
],
"displayName": "Get the structure of a notebook",
"modelDescription": "This is a tool returns the list of the Notebook cells along with the id, cell types, line ranges, language, execution information and output mime types for each cell. This is useful to get Cell Ids when executing a notebook or determine what cells have been executed and what order, or what cells have outputs. If required to read contents of a cell use this to determine the line range of a cells, and then use read_file tool to read a specific line range. Requery this tool if the contents of the notebook change.",
"tags": [],
"inputSchema": {
"type": "object",
"properties": {
"filePath": {
"type": "string",
"description": "An absolute path to the notebook file with the cell to run, or the URI of a untitled, not yet named, file, such as `untitled:Untitled-1.ipynb"
}
},
"required": [
"filePath"
]
}
},
{
"name": "copilot_readNotebookCellOutput",
"displayName": "%copilot.tools.getNotebookCellOutput.name%",
"toolReferenceName": "readNotebookCellOutput",
"legacyToolReferenceFullNames": [
"runNotebooks/readNotebookCellOutput"
],
"icon": "$(notebook-render-output)",
"modelDescription": "This tool will retrieve the output for a notebook cell from its most recent execution or restored from disk. The cell may have output even when it has not been run in the current kernel session. This tool has a higher token limit for output length than the runNotebookCell tool.",
"userDescription": "%copilot.tools.getNotebookCellOutput.description%",
"when": "userHasOpenedNotebook",
"tags": [],
"inputSchema": {
"type": "object",
"properties": {
"filePath": {
"type": "string",
"description": "An absolute path to the notebook file with the cell to run, or the URI of a untitled, not yet named, file, such as `untitled:Untitled-1.ipynb"
},
"cellId": {
"type": "string",
"description": "The ID of the cell for which output should be retrieved."