File tree 1 file changed +8
-3
lines changed
1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -16,15 +16,20 @@ def json_schema(self) -> dict:
16
16
return {
17
17
"name" : "git_tool" ,
18
18
"description" : """\
19
- Access to the Git CLI, the command is also `git` all args provided are used as is
19
+ Access to the Git CLI, the command is also `git` all args provided are used as is.
20
20
""" ,
21
21
"input_schema" : {
22
22
"type" : "object" ,
23
23
"properties" : {
24
24
"args" : {
25
25
"type" : "array" ,
26
26
"items" : {"type" : "string" },
27
- "description" : "The args to run `git` command with." ,
27
+ "description" : """
28
+ The args to run `git` command with.
29
+ E.g.
30
+ [\" commit\" , \" -m\" , \" A commit message\" ] to commit changes with a commit message.
31
+ [\" add\" , \" .\" ] to stage all changed files.
32
+ """ ,
28
33
}
29
34
},
30
35
"required" : ["args" ],
@@ -34,7 +39,7 @@ def json_schema(self) -> dict:
34
39
def execute (self , args : list [str ]) -> str :
35
40
env = os .environ .copy ()
36
41
p = subprocess .run (
37
- ["gh " , * args ],
42
+ ["git " , * args ],
38
43
env = env ,
39
44
cwd = self .path ,
40
45
text = True ,
You can’t perform that action at this time.
0 commit comments