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: shell/AIShell.Kernel/MCP/BuiltInTool.cs
+5-8Lines changed: 5 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -1,18 +1,15 @@
1
1
usingAIShell.Abstraction;
2
2
usingMicrosoft.Extensions.AI;
3
3
usingSystem.Diagnostics;
4
-
usingSystem.Runtime.CompilerServices;
5
-
usingSystem.Runtime.InteropServices.ObjectiveC;
6
4
usingSystem.Text.Json;
7
-
usingSystem.Xml.Linq;
8
5
9
6
namespaceAIShell.Kernel.Mcp;
10
7
11
8
internalclassBuiltInTool:AIFunction
12
9
{
13
10
privateenumToolType:int
14
11
{
15
-
get_current_location=0,
12
+
get_working_directory=0,
16
13
get_command_history=1,
17
14
get_terminal_content=2,
18
15
get_environment_variables=3,
@@ -25,8 +22,8 @@ private enum ToolType : int
25
22
26
23
privatestaticreadonlystring[]s_toolDescription=
27
24
[
28
-
// get_current_location
29
-
"Get the current location of the connected PowerShell session, including the provider name (e.g., `FileSystem`, `Certificate`) and the path (e.g., `C:\\`, `cert:\\`).",
25
+
// get_working_directory
26
+
"Get the current working directory of the connected PowerShell session, including the provider name (e.g., `FileSystem`, `Certificate`) and the path (e.g., `C:\\`, `cert:\\`).",
30
27
31
28
// get_command_history
32
29
"Get up to 5 of the most recent commands executed in the connected PowerShell session.",
0 commit comments