You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/core/prompts/__tests__/__snapshots__/system.test.ts.snap
+270Lines changed: 270 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -94,6 +94,24 @@ Example: Requesting to list all top level source code definitions in the current
94
94
<path>.</path>
95
95
</list_code_definition_names>
96
96
97
+
## get_symbol_documentation
98
+
Description: Request to retrieve documentation, type information, and other hover details for a symbol in the codebase.
99
+
Parameters:
100
+
- symbol_name: (required) The name of the symbol to look up (function, class, method, etc.)
101
+
- path: (optional) Path to a file where the symbol is used/referenced, to scope the search and avoid conflicts with similarly named symbols
102
+
103
+
Usage:
104
+
<get_symbol_documentation>
105
+
<symbol_name>MyClass</symbol_name>
106
+
<path>src/models/user.ts</path>
107
+
</get_symbol_documentation>
108
+
109
+
Example: Requesting documentation for a class named "User" that is referenced in a specific file
110
+
<get_symbol_documentation>
111
+
<symbol_name>User</symbol_name>
112
+
<path>src/controllers/auth.ts</path>
113
+
</get_symbol_documentation>
114
+
97
115
## write_to_file
98
116
Description: Request to write full content to a file at the specified path. If the file exists, it will be overwritten with the provided content. If the file doesn't exist, it will be created. This tool will automatically create any directories needed to write the file.
99
117
Parameters:
@@ -428,6 +446,24 @@ Example: Requesting to list all top level source code definitions in the current
428
446
<path>.</path>
429
447
</list_code_definition_names>
430
448
449
+
## get_symbol_documentation
450
+
Description: Request to retrieve documentation, type information, and other hover details for a symbol in the codebase.
451
+
Parameters:
452
+
- symbol_name: (required) The name of the symbol to look up (function, class, method, etc.)
453
+
- path: (optional) Path to a file where the symbol is used/referenced, to scope the search and avoid conflicts with similarly named symbols
454
+
455
+
Usage:
456
+
<get_symbol_documentation>
457
+
<symbol_name>MyClass</symbol_name>
458
+
<path>src/models/user.ts</path>
459
+
</get_symbol_documentation>
460
+
461
+
Example: Requesting documentation for a class named "User" that is referenced in a specific file
462
+
<get_symbol_documentation>
463
+
<symbol_name>User</symbol_name>
464
+
<path>src/controllers/auth.ts</path>
465
+
</get_symbol_documentation>
466
+
431
467
## write_to_file
432
468
Description: Request to write full content to a file at the specified path. If the file exists, it will be overwritten with the provided content. If the file doesn't exist, it will be created. This tool will automatically create any directories needed to write the file.
433
469
Parameters:
@@ -851,6 +887,24 @@ Example: Requesting to list all top level source code definitions in the current
851
887
<path>.</path>
852
888
</list_code_definition_names>
853
889
890
+
## get_symbol_documentation
891
+
Description: Request to retrieve documentation, type information, and other hover details for a symbol in the codebase.
892
+
Parameters:
893
+
- symbol_name: (required) The name of the symbol to look up (function, class, method, etc.)
894
+
- path: (optional) Path to a file where the symbol is used/referenced, to scope the search and avoid conflicts with similarly named symbols
895
+
896
+
Usage:
897
+
<get_symbol_documentation>
898
+
<symbol_name>MyClass</symbol_name>
899
+
<path>src/models/user.ts</path>
900
+
</get_symbol_documentation>
901
+
902
+
Example: Requesting documentation for a class named "User" that is referenced in a specific file
903
+
<get_symbol_documentation>
904
+
<symbol_name>User</symbol_name>
905
+
<path>src/controllers/auth.ts</path>
906
+
</get_symbol_documentation>
907
+
854
908
## write_to_file
855
909
Description: Request to write full content to a file at the specified path. If the file exists, it will be overwritten with the provided content. If the file doesn't exist, it will be created. This tool will automatically create any directories needed to write the file.
856
910
Parameters:
@@ -1238,6 +1292,24 @@ Example: Requesting to list all top level source code definitions in the current
1238
1292
<path>.</path>
1239
1293
</list_code_definition_names>
1240
1294
1295
+
## get_symbol_documentation
1296
+
Description: Request to retrieve documentation, type information, and other hover details for a symbol in the codebase.
1297
+
Parameters:
1298
+
- symbol_name: (required) The name of the symbol to look up (function, class, method, etc.)
1299
+
- path: (optional) Path to a file where the symbol is used/referenced, to scope the search and avoid conflicts with similarly named symbols
1300
+
1301
+
Usage:
1302
+
<get_symbol_documentation>
1303
+
<symbol_name>MyClass</symbol_name>
1304
+
<path>src/models/user.ts</path>
1305
+
</get_symbol_documentation>
1306
+
1307
+
Example: Requesting documentation for a class named "User" that is referenced in a specific file
1308
+
<get_symbol_documentation>
1309
+
<symbol_name>User</symbol_name>
1310
+
<path>src/controllers/auth.ts</path>
1311
+
</get_symbol_documentation>
1312
+
1241
1313
## write_to_file
1242
1314
Description: Request to write full content to a file at the specified path. If the file exists, it will be overwritten with the provided content. If the file doesn't exist, it will be created. This tool will automatically create any directories needed to write the file.
1243
1315
Parameters:
@@ -1572,6 +1644,24 @@ Example: Requesting to list all top level source code definitions in the current
1572
1644
<path>.</path>
1573
1645
</list_code_definition_names>
1574
1646
1647
+
## get_symbol_documentation
1648
+
Description: Request to retrieve documentation, type information, and other hover details for a symbol in the codebase.
1649
+
Parameters:
1650
+
- symbol_name: (required) The name of the symbol to look up (function, class, method, etc.)
1651
+
- path: (optional) Path to a file where the symbol is used/referenced, to scope the search and avoid conflicts with similarly named symbols
1652
+
1653
+
Usage:
1654
+
<get_symbol_documentation>
1655
+
<symbol_name>MyClass</symbol_name>
1656
+
<path>src/models/user.ts</path>
1657
+
</get_symbol_documentation>
1658
+
1659
+
Example: Requesting documentation for a class named "User" that is referenced in a specific file
1660
+
<get_symbol_documentation>
1661
+
<symbol_name>User</symbol_name>
1662
+
<path>src/controllers/auth.ts</path>
1663
+
</get_symbol_documentation>
1664
+
1575
1665
## write_to_file
1576
1666
Description: Request to write full content to a file at the specified path. If the file exists, it will be overwritten with the provided content. If the file doesn't exist, it will be created. This tool will automatically create any directories needed to write the file.
1577
1667
Parameters:
@@ -1906,6 +1996,24 @@ Example: Requesting to list all top level source code definitions in the current
1906
1996
<path>.</path>
1907
1997
</list_code_definition_names>
1908
1998
1999
+
## get_symbol_documentation
2000
+
Description: Request to retrieve documentation, type information, and other hover details for a symbol in the codebase.
2001
+
Parameters:
2002
+
- symbol_name: (required) The name of the symbol to look up (function, class, method, etc.)
2003
+
- path: (optional) Path to a file where the symbol is used/referenced, to scope the search and avoid conflicts with similarly named symbols
2004
+
2005
+
Usage:
2006
+
<get_symbol_documentation>
2007
+
<symbol_name>MyClass</symbol_name>
2008
+
<path>src/models/user.ts</path>
2009
+
</get_symbol_documentation>
2010
+
2011
+
Example: Requesting documentation for a class named "User" that is referenced in a specific file
2012
+
<get_symbol_documentation>
2013
+
<symbol_name>User</symbol_name>
2014
+
<path>src/controllers/auth.ts</path>
2015
+
</get_symbol_documentation>
2016
+
1909
2017
## write_to_file
1910
2018
Description: Request to write full content to a file at the specified path. If the file exists, it will be overwritten with the provided content. If the file doesn't exist, it will be created. This tool will automatically create any directories needed to write the file.
1911
2019
Parameters:
@@ -2240,6 +2348,24 @@ Example: Requesting to list all top level source code definitions in the current
2240
2348
<path>.</path>
2241
2349
</list_code_definition_names>
2242
2350
2351
+
## get_symbol_documentation
2352
+
Description: Request to retrieve documentation, type information, and other hover details for a symbol in the codebase.
2353
+
Parameters:
2354
+
- symbol_name: (required) The name of the symbol to look up (function, class, method, etc.)
2355
+
- path: (optional) Path to a file where the symbol is used/referenced, to scope the search and avoid conflicts with similarly named symbols
2356
+
2357
+
Usage:
2358
+
<get_symbol_documentation>
2359
+
<symbol_name>MyClass</symbol_name>
2360
+
<path>src/models/user.ts</path>
2361
+
</get_symbol_documentation>
2362
+
2363
+
Example: Requesting documentation for a class named "User" that is referenced in a specific file
2364
+
<get_symbol_documentation>
2365
+
<symbol_name>User</symbol_name>
2366
+
<path>src/controllers/auth.ts</path>
2367
+
</get_symbol_documentation>
2368
+
2243
2369
## write_to_file
2244
2370
Description: Request to write full content to a file at the specified path. If the file exists, it will be overwritten with the provided content. If the file doesn't exist, it will be created. This tool will automatically create any directories needed to write the file.
2245
2371
Parameters:
@@ -2623,6 +2749,24 @@ Example: Requesting to list all top level source code definitions in the current
2623
2749
<path>.</path>
2624
2750
</list_code_definition_names>
2625
2751
2752
+
## get_symbol_documentation
2753
+
Description: Request to retrieve documentation, type information, and other hover details for a symbol in the codebase.
2754
+
Parameters:
2755
+
- symbol_name: (required) The name of the symbol to look up (function, class, method, etc.)
2756
+
- path: (optional) Path to a file where the symbol is used/referenced, to scope the search and avoid conflicts with similarly named symbols
2757
+
2758
+
Usage:
2759
+
<get_symbol_documentation>
2760
+
<symbol_name>MyClass</symbol_name>
2761
+
<path>src/models/user.ts</path>
2762
+
</get_symbol_documentation>
2763
+
2764
+
Example: Requesting documentation for a class named "User" that is referenced in a specific file
2765
+
<get_symbol_documentation>
2766
+
<symbol_name>User</symbol_name>
2767
+
<path>src/controllers/auth.ts</path>
2768
+
</get_symbol_documentation>
2769
+
2626
2770
## write_to_file
2627
2771
Description: Request to write full content to a file at the specified path. If the file exists, it will be overwritten with the provided content. If the file doesn't exist, it will be created. This tool will automatically create any directories needed to write the file.
2628
2772
Parameters:
@@ -3370,6 +3514,24 @@ Example: Requesting to list all top level source code definitions in the current
3370
3514
<path>.</path>
3371
3515
</list_code_definition_names>
3372
3516
3517
+
## get_symbol_documentation
3518
+
Description: Request to retrieve documentation, type information, and other hover details for a symbol in the codebase.
3519
+
Parameters:
3520
+
- symbol_name: (required) The name of the symbol to look up (function, class, method, etc.)
3521
+
- path: (optional) Path to a file where the symbol is used/referenced, to scope the search and avoid conflicts with similarly named symbols
3522
+
3523
+
Usage:
3524
+
<get_symbol_documentation>
3525
+
<symbol_name>MyClass</symbol_name>
3526
+
<path>src/models/user.ts</path>
3527
+
</get_symbol_documentation>
3528
+
3529
+
Example: Requesting documentation for a class named "User" that is referenced in a specific file
3530
+
<get_symbol_documentation>
3531
+
<symbol_name>User</symbol_name>
3532
+
<path>src/controllers/auth.ts</path>
3533
+
</get_symbol_documentation>
3534
+
3373
3535
## write_to_file
3374
3536
Description: Request to write full content to a file at the specified path. If the file exists, it will be overwritten with the provided content. If the file doesn't exist, it will be created. This tool will automatically create any directories needed to write the file.
3375
3537
Parameters:
@@ -3753,6 +3915,24 @@ Example: Requesting to list all top level source code definitions in the current
3753
3915
<path>.</path>
3754
3916
</list_code_definition_names>
3755
3917
3918
+
## get_symbol_documentation
3919
+
Description: Request to retrieve documentation, type information, and other hover details for a symbol in the codebase.
3920
+
Parameters:
3921
+
- symbol_name: (required) The name of the symbol to look up (function, class, method, etc.)
3922
+
- path: (optional) Path to a file where the symbol is used/referenced, to scope the search and avoid conflicts with similarly named symbols
3923
+
3924
+
Usage:
3925
+
<get_symbol_documentation>
3926
+
<symbol_name>MyClass</symbol_name>
3927
+
<path>src/models/user.ts</path>
3928
+
</get_symbol_documentation>
3929
+
3930
+
Example: Requesting documentation for a class named "User" that is referenced in a specific file
3931
+
<get_symbol_documentation>
3932
+
<symbol_name>User</symbol_name>
3933
+
<path>src/controllers/auth.ts</path>
3934
+
</get_symbol_documentation>
3935
+
3756
3936
## apply_diff
3757
3937
Description: Request to replace existing code using a search and replace block.
3758
3938
This tool allows for precise, surgical replaces to files by specifying exactly what content to search for and what to replace it with.
@@ -4149,6 +4329,24 @@ Example: Requesting to list all top level source code definitions in the current
4149
4329
<path>.</path>
4150
4330
</list_code_definition_names>
4151
4331
4332
+
## get_symbol_documentation
4333
+
Description: Request to retrieve documentation, type information, and other hover details for a symbol in the codebase.
4334
+
Parameters:
4335
+
- symbol_name: (required) The name of the symbol to look up (function, class, method, etc.)
4336
+
- path: (optional) Path to a file where the symbol is used/referenced, to scope the search and avoid conflicts with similarly named symbols
4337
+
4338
+
Usage:
4339
+
<get_symbol_documentation>
4340
+
<symbol_name>MyClass</symbol_name>
4341
+
<path>src/models/user.ts</path>
4342
+
</get_symbol_documentation>
4343
+
4344
+
Example: Requesting documentation for a class named "User" that is referenced in a specific file
4345
+
<get_symbol_documentation>
4346
+
<symbol_name>User</symbol_name>
4347
+
<path>src/controllers/auth.ts</path>
4348
+
</get_symbol_documentation>
4349
+
4152
4350
## write_to_file
4153
4351
Description: Request to write full content to a file at the specified path. If the file exists, it will be overwritten with the provided content. If the file doesn't exist, it will be created. This tool will automatically create any directories needed to write the file.
4154
4352
Parameters:
@@ -4525,6 +4723,24 @@ Example: Requesting to list all top level source code definitions in the current
4525
4723
<path>.</path>
4526
4724
</list_code_definition_names>
4527
4725
4726
+
## get_symbol_documentation
4727
+
Description: Request to retrieve documentation, type information, and other hover details for a symbol in the codebase.
4728
+
Parameters:
4729
+
- symbol_name: (required) The name of the symbol to look up (function, class, method, etc.)
4730
+
- path: (optional) Path to a file where the symbol is used/referenced, to scope the search and avoid conflicts with similarly named symbols
4731
+
4732
+
Usage:
4733
+
<get_symbol_documentation>
4734
+
<symbol_name>MyClass</symbol_name>
4735
+
<path>src/models/user.ts</path>
4736
+
</get_symbol_documentation>
4737
+
4738
+
Example: Requesting documentation for a class named "User" that is referenced in a specific file
4739
+
<get_symbol_documentation>
4740
+
<symbol_name>User</symbol_name>
4741
+
<path>src/controllers/auth.ts</path>
4742
+
</get_symbol_documentation>
4743
+
4528
4744
## write_to_file
4529
4745
Description: Request to write full content to a file at the specified path. If the file exists, it will be overwritten with the provided content. If the file doesn't exist, it will be created. This tool will automatically create any directories needed to write the file.
4530
4746
Parameters:
@@ -5018,6 +5234,24 @@ Example: Requesting to list all top level source code definitions in the current
5018
5234
<path>.</path>
5019
5235
</list_code_definition_names>
5020
5236
5237
+
## get_symbol_documentation
5238
+
Description: Request to retrieve documentation, type information, and other hover details for a symbol in the codebase.
5239
+
Parameters:
5240
+
- symbol_name: (required) The name of the symbol to look up (function, class, method, etc.)
5241
+
- path: (optional) Path to a file where the symbol is used/referenced, to scope the search and avoid conflicts with similarly named symbols
5242
+
5243
+
Usage:
5244
+
<get_symbol_documentation>
5245
+
<symbol_name>MyClass</symbol_name>
5246
+
<path>src/models/user.ts</path>
5247
+
</get_symbol_documentation>
5248
+
5249
+
Example: Requesting documentation for a class named "User" that is referenced in a specific file
5250
+
<get_symbol_documentation>
5251
+
<symbol_name>User</symbol_name>
5252
+
<path>src/controllers/auth.ts</path>
5253
+
</get_symbol_documentation>
5254
+
5021
5255
## write_to_file
5022
5256
Description: Request to write full content to a file at the specified path. If the file exists, it will be overwritten with the provided content. If the file doesn't exist, it will be created. This tool will automatically create any directories needed to write the file.
5023
5257
Parameters:
@@ -5428,6 +5662,24 @@ Example: Requesting to list all top level source code definitions in the current
5428
5662
<path>.</path>
5429
5663
</list_code_definition_names>
5430
5664
5665
+
## get_symbol_documentation
5666
+
Description: Request to retrieve documentation, type information, and other hover details for a symbol in the codebase.
5667
+
Parameters:
5668
+
- symbol_name: (required) The name of the symbol to look up (function, class, method, etc.)
5669
+
- path: (optional) Path to a file where the symbol is used/referenced, to scope the search and avoid conflicts with similarly named symbols
5670
+
5671
+
Usage:
5672
+
<get_symbol_documentation>
5673
+
<symbol_name>MyClass</symbol_name>
5674
+
<path>src/models/user.ts</path>
5675
+
</get_symbol_documentation>
5676
+
5677
+
Example: Requesting documentation for a class named "User" that is referenced in a specific file
5678
+
<get_symbol_documentation>
5679
+
<symbol_name>User</symbol_name>
5680
+
<path>src/controllers/auth.ts</path>
5681
+
</get_symbol_documentation>
5682
+
5431
5683
## ask_followup_question
5432
5684
Description: Ask the user a question to gather additional information needed to complete the task. This tool should be used when you encounter ambiguities, need clarification, or require more details to proceed effectively. It allows for interactive problem-solving by enabling direct communication with the user. Use this tool judiciously to maintain a balance between gathering necessary information and avoiding excessive back-and-forth.
5433
5685
Parameters:
@@ -5736,6 +5988,24 @@ Example: Requesting to list all top level source code definitions in the current
5736
5988
<path>.</path>
5737
5989
</list_code_definition_names>
5738
5990
5991
+
## get_symbol_documentation
5992
+
Description: Request to retrieve documentation, type information, and other hover details for a symbol in the codebase.
5993
+
Parameters:
5994
+
- symbol_name: (required) The name of the symbol to look up (function, class, method, etc.)
5995
+
- path: (optional) Path to a file where the symbol is used/referenced, to scope the search and avoid conflicts with similarly named symbols
5996
+
5997
+
Usage:
5998
+
<get_symbol_documentation>
5999
+
<symbol_name>MyClass</symbol_name>
6000
+
<path>src/models/user.ts</path>
6001
+
</get_symbol_documentation>
6002
+
6003
+
Example: Requesting documentation for a class named "User" that is referenced in a specific file
6004
+
<get_symbol_documentation>
6005
+
<symbol_name>User</symbol_name>
6006
+
<path>src/controllers/auth.ts</path>
6007
+
</get_symbol_documentation>
6008
+
5739
6009
## write_to_file
5740
6010
Description: Request to write full content to a file at the specified path. If the file exists, it will be overwritten with the provided content. If the file doesn't exist, it will be created. This tool will automatically create any directories needed to write the file.
0 commit comments