forked from x1xhlol/system-prompts-and-models-of-ai-tools
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBuilder Tools.json
More file actions
221 lines (221 loc) · 8.07 KB
/
Builder Tools.json
File metadata and controls
221 lines (221 loc) · 8.07 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
{
"todo_write": {
"description": "Use this tool to create and manage a structured task list for your current coding session. This helps you track progress, organize complex tasks, and demonstrate thoroughness to the user. It also helps the user understand the progress of the task and overall progress of their requests.",
"params": {
"type": "object",
"properties": {
"todos": {
"description": "The updated todo list",
"type": "array",
"items": {
"type": "object",
"properties": {
"content": {"type": "string"},
"status": {"type": "string", "enum": ["pending", "in_progress", "completed"]},
"id": {"type": "string"},
"priority": {"type": "string", "enum": ["high", "medium", "low"]}
},
"required": ["content", "status", "id", "priority"],
"minItems": 3,
"maxItems": 10
}
}
},
"required": ["todos"]
}
},
"search_codebase": {
"description": "This tool is Trae's context engine. It: 1. Takes in a natural language description of the code you are looking for; 2. Uses a proprietary retrieval/embedding model suite that produces the highest-quality recall of relevant code snippets from across the codebase; 3. Maintains a real-time index of the codebase, so the results are always up-to-date and reflects the current state of the codebase; 4. Can retrieve across different programming languages; 5. Only reflects the current state of the codebase on the disk, and has no information on version control or code history.",
"params": {
"type": "object",
"properties": {
"information_request": {"type": "string"},
"target_directories": {"type": "array", "items": {"type": "string"}}
},
"required": ["information_request"]
}
},
"search_by_regex": {
"description": "Fast text-based search that finds exact pattern matches within files or directories, utilizing the ripgrep command for efficient searching.",
"params": {
"type": "object",
"properties": {
"query": {"type": "string"},
"search_directory": {"type": "string"}
},
"required": ["query"]
}
},
"view_files": {
"description": "View up to 3 files simultaneously in batch mode for faster information gathering.",
"params": {
"type": "object",
"properties": {
"files": {
"type": "array",
"items": {
"type": "object",
"properties": {
"file_path": {"type": "string"},
"start_line_one_indexed": {"type": "integer"},
"end_line_one_indexed_inclusive": {"type": "integer"},
"read_entire_file": {"type": "boolean"}
},
"required": ["file_path", "start_line_one_indexed", "end_line_one_indexed_inclusive"]
}
}
},
"required": ["files"]
}
},
"list_dir": {
"description": "You can use this tool to view files of the specified directory.",
"params": {
"type": "object",
"properties": {
"dir_path": {"type": "string"},
"max_depth": {"type": "integer", "default": 3}
},
"required": ["dir_path"]
}
},
"write_to_file": {
"description": "You can use this tool to write content to a file with precise control over creation/rewrite behavior.",
"params": {
"type": "object",
"properties": {
"rewrite": {"type": "boolean"},
"file_path": {"type": "string"},
"content": {"type": "string"}
},
"required": ["rewrite", "file_path", "content"]
}
},
"update_file": {
"description": "You can use this tool to edit file, if you think that using this tool is more cost-effective than other available editing tools, you should choose this tool, otherwise you should choose other available edit tools.",
"params": {
"type": "object",
"properties": {
"file_path": {"type": "string"},
"replace_blocks": {
"type": "array",
"items": {
"type": "object",
"properties": {
"old_str": {"type": "string"},
"new_str": {"type": "string"}
},
"required": ["old_str", "new_str"]
}
}
},
"required": ["file_path", "replace_blocks"]
}
},
"edit_file_fast_apply": {
"description": "You can use this tool to edit an existing files with less than 1000 lines of code, and you should follow these rules:",
"params": {
"type": "object",
"properties": {
"file_path": {"type": "string"},
"content": {"type": "string"},
"instruction": {"type": "string", "default": ""},
"code_language": {"type": "string"}
},
"required": ["file_path", "content"]
}
},
"rename_file": {
"description": "You can use this tool to move or rename an existing file.",
"params": {
"type": "object",
"properties": {
"file_path": {"type": "string"},
"rename_file_path": {"type": "string"}
},
"required": ["file_path", "rename_file_path"]
}
},
"delete_file": {
"description": "You can use this tool to delete files, you can delete multi files in one toolcall, and you MUST make sure the files is exist before deleting.",
"params": {
"type": "object",
"properties": {
"file_paths": {"type": "array", "items": {"type": "string"}}
},
"required": ["file_paths"]
}
},
"run_command": {
"description": "You can use this tool to PROPOSE a command to run on behalf of the user.",
"params": {
"type": "object",
"properties": {
"command": {"type": "string"},
"target_terminal": {"type": "string"},
"command_type": {"type": "string"},
"cwd": {"type": "string"},
"blocking": {"type": "boolean"},
"wait_ms_before_async": {"type": "integer", "minimum": 0},
"requires_approval": {"type": "boolean"}
},
"required": ["command", "blocking", "requires_approval"]
}
},
"check_command_status": {
"description": "You can use this tool to get the status of a previously executed command by its Command ID ( non-blocking command ).",
"params": {
"type": "object",
"properties": {
"command_id": {"type": "string"},
"wait_ms_before_check": {"type": "integer"},
"output_character_count": {"type": "integer", "minimum": 0, "default": 1000},
"skip_character_count": {"type": "integer", "minimum": 0, "default": 0},
"output_priority": {"type": "string", "default": "bottom"}
}
}
},
"stop_command": {
"description": "This tool allows you to terminate a currently running command( the command MUST be previously executed command. ).",
"params": {
"type": "object",
"properties": {
"command_id": {"type": "string"}
},
"required": ["command_id"]
}
},
"open_preview": {
"description": "You can use this tool to show the available preview URL to user if you have started a local server successfully in a previous toolcall, which user can open it in the browser.",
"params": {
"type": "object",
"properties": {
"preview_url": {"type": "string"},
"command_id": {"type": "string"}
},
"required": ["preview_url", "command_id"]
}
},
"web_search": {
"description": "This tool can be used to search the internet, which should be used with caution, as frequent searches result in a bad user experience and excessive costs.",
"params": {
"type": "object",
"properties": {
"query": {"type": "string"},
"num": {"type": "int32", "default": 5},
"lr": {"type": "string"}
},
"required": ["query"]
}
},
"finish": {
"description": "The final tool of this session, when you think you have archived the goal of user requirement, you should use this tool to mark it as finish.",
"params": {
"type": "object",
"properties": {
"summary": {"type": "string"}
},
"required": ["summary"]
}
}
}